Vulnerabilities in pkg:npm/hull.js

PACKAGE
Advisory Summary

GHSA-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/hull.js

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/hull.js. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q849-wxrc-vqrp - CRITICAL hull.js Code Injection Vulnerability

GHSA-q849-wxrc-vqrp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-q849-wxrc-vqrp
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Hull.js
Package Ecosystem npm
Published Date
Last Updated

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.

hull.js fixed: 1.0.10
npm install hull.js@1.0.10
Verify Direct and Transitive Dependencies

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

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

GHSA-q849-wxrc-vqrp Affected Hull.js Versions

1 component(s)
Fixed Versions:
1.0.10
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?
GHSA-q849-wxrc-vqrp is a security vulnerability in Hull.js involving hull.js Code Injection Vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Hull.js versions are affected?
Affected versions include releases prior to 1.0.10 across affected packages: hull.js.
What version fixes GHSA-q849-wxrc-vqrp?
Upgrading to 1.0.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hull.js affected?
Yes, hull.js is affected in releases prior to 1.0.10. Upgrade your dependency to 1.0.10 or later.
What CWE is associated with GHSA-q849-wxrc-vqrp?
GHSA-q849-wxrc-vqrp is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check npm dependencies for GHSA-q849-wxrc-vqrp?
Run the dependency tree command: 'npm ls hull.js'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}