GHSA-q849-wxrc-vqrp: Hull.js Hull.js Code Injection Vulnerability Vulnerability
CRITICALGHSA-q849-wxrc-vqrp is a CRITICAL hull.js code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Hull.js libraries in the npm ecosystem. The issue involves hull.js code injection vulnerability. Remediation is available by upgrading affected packages to version 1.0.10.
GHSA-q849-wxrc-vqrp at a Glance
How to Fix GHSA-q849-wxrc-vqrp
To remediate this vulnerability, upgrade all affected Hull.js dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install hull.js@1.0.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls hull.js
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-q849-wxrc-vqrp, inspect your project dependencies using npm:
npm ls hull.js
Analyze the terminal output to locate any version of Hull.js in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.10), your application is affected.
Note: The npm ls hull.js command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Hull.js, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-q849-wxrc-vqrp Affected Hull.js Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
hull.js
|
npm |
≥ 0.2.2
< 1.0.10
|
1.0.10
|
References
Frequently Asked Questions
What is GHSA-q849-wxrc-vqrp?
Which Hull.js versions are affected?
What version fixes GHSA-q849-wxrc-vqrp?
Is hull.js affected?
What CWE is associated with GHSA-q849-wxrc-vqrp?
How can I check npm dependencies for GHSA-q849-wxrc-vqrp?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q849-wxrc-vqrp",
"modified" : "2024-12-02T20:11:39Z",
"published" : "2024-12-02T20:11:39Z",
"aliases" : [ ],
"summary" : "hull.js Code Injection Vulnerability",
"details" : "Versions of the library from 0.2.2 to 1.0.9 are vulnerable to the arbitrary code execution due to unsafe usage of `new Function(...)` in the module that handles points format. Applications passing the 3rd parameter to the `hull` function without sanitising may be impacted. The vulnerability has been fixed in version 1.0.10, please update the library. Check project homepage on GitHub to see how to fetch the latest version: https://github.com/andriiheonia/hull?tab=readme-ov-file#npm-package",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "hull.js"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.2.2"
}, {
"fixed" : "1.0.10"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/AndriiHeonia/hull/security/advisories/GHSA-q849-wxrc-vqrp"
}, {
"type" : "WEB",
"url" : "https://github.com/AndriiHeonia/hull/commit/9de6f9549b74fbb68bf4d5a449147b4c1d7cda0a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/AndriiHeonia/hull"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-02T20:11:39Z",
"nvd_published_at" : null
}
}