Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: hull.js Code Injection Vulnerability #6605

Open
2 of 10 tasks
Rey-Wang opened this issue Dec 5, 2024 · 13 comments · Fixed by #6609
Open
2 of 10 tasks

[Bug]: hull.js Code Injection Vulnerability #6605

Rey-Wang opened this issue Dec 5, 2024 · 13 comments · Fixed by #6609
Labels
waiting for maintainer Triage or intervention needed from a maintainer.

Comments

@Rey-Wang
Copy link
Contributor

Rey-Wang commented Dec 5, 2024

Describe the bug / 问题描述

could we upgrade to the latest version? also, new version of hull.js is not hosted on npm

Since version 1.0.7 this library is not hosted on npmjs.com, but you can use GitHub URL as a dependency, e.g.:

"dependencies": {
        "hull.js": "andriiheonia/hull#semver:^1.0.10"
    }
image

Reproduction link / 复现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
@Rey-Wang Rey-Wang added the waiting for maintainer Triage or intervention needed from a maintainer. label Dec 5, 2024
@Aarebecca
Copy link
Contributor

Would you be willing to contribute to update the version of this dependency?

@Aarebecca Aarebecca added waiting for author Further information is requested from the author. and removed waiting for maintainer Triage or intervention needed from a maintainer. labels Dec 5, 2024
@Rey-Wang
Copy link
Contributor Author

Rey-Wang commented Dec 5, 2024

@Aarebecca #6609

@github-actions github-actions bot added waiting for maintainer Triage or intervention needed from a maintainer. and removed waiting for author Further information is requested from the author. labels Dec 5, 2024
@Rey-Wang
Copy link
Contributor Author

Rey-Wang commented Jan 3, 2025

@Aarebecca 既然我们不想引入 github link 的库,是否有其他的替代库能避免这个库注入漏洞的问题?

@Aarebecca
Copy link
Contributor

Aarebecca commented Jan 3, 2025

@Rey-Wang 也许可以考虑将该库的源码拷贝至 G6 内部

@andriiheonia
Copy link

Hello, this library was created more than 10 years ago. It is deprecated and not maintained, I would not recommend using it. I’d suggest to search for alternatives.

@Crystal-RainSlide
Copy link
Contributor

Some alternatives:

@YuLingCheng
Copy link

Hello! Could we re-open this issue?
I see there is only one usage of this library.
Trying to replace the current package by a maintained alternative sounds great! Is there anything we could do to help?

@hustcc hustcc reopened this Feb 20, 2025
@Crystal-RainSlide
Copy link
Contributor

@YuLingCheng : Trying to replace the current package by a maintained alternative sounds great! Is there anything we could do to help?

Should be just: gather alternatives, check them for robustness, compatibility, and performance, then replace hull.js with the best alternative

@zhongyunWan
Copy link
Contributor

Trying to replace the current package by a maintained alternative sounds great! Is there anything we could do to help?

You can conduct research on the libraries that are closest in capabilities to hull.js. You can consider several factors:

  1. whether the functions meet the requirements
  2. the size of the package
  3. and whether the community is active.

@eliziebluiz
Copy link

eliziebluiz commented Feb 21, 2025

Any news on defining the hull.js replacement?

@zhongyunWan
Copy link
Contributor

zhongyunWan commented Feb 25, 2025

@Rey-Wang 也许可以考虑将该库的源码拷贝至 G6 内部

It has already been in PR. For details, please refer to: #6805

@Crystal-RainSlide
Copy link
Contributor

Crystal-RainSlide commented Feb 25, 2025

A typed copy of hull.js is better. However, since the author don't recommend using it any more + potential security risks, an existing alternative can be an instant upgrade than hull.js, and would be much easier for future maintainace. (Unless you are going to fix & improve hull.js to your own liking)

@Rey-Wang
Copy link
Contributor Author

Rey-Wang commented Mar 21, 2025

@zhongyunWan may I ask when we will release the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for maintainer Triage or intervention needed from a maintainer.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants