GHSA-q849-wxrc-vqrp hull.js Code Injection Vulnerability

Not scored Published

An attacker can execute arbitrary code by passing unsanitized input to the hull function, affecting applications using this JavaScript library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-q849-wxrc-vqrp?

GHSA-q849-wxrc-vqrp is a code injection vulnerability in hull.js, published on 2 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Which versions are affected by GHSA-q849-wxrc-vqrp?

2 open source packages ship an affected version, including hull.js.

PackageAffectedFixed in
hull.js npmFrom 0.2.21.0.10
hull.js npmFrom 0.2.21.0.10

How do I fix GHSA-q849-wxrc-vqrp?

Upgrade hull.js to 1.0.10 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is GHSA-q849-wxrc-vqrp being exploited?

There is no known exploitation of GHSA-q849-wxrc-vqrp in the wild and no public exploit code.

Sources

Is GHSA-q849-wxrc-vqrp in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free