---
title: "GHSA-q849-wxrc-vqrp: hull.js Code Injection Vulnerability"
url: https://erroneo.us/security/ghsa/GHSA-q849-wxrc-vqrp/
description: "GHSA-q849-wxrc-vqrp (critical, npm): hull.js Code Injection Vulnerability. Versions of the library from 0.2.2 to 1.0.9 are vulnerable to the arbitrary code…"
type: advisory
section: "Security Digest"
date_published: 2024-12-02
date_modified: 2024-12-02
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-q849-wxrc-vqrp"
license: All rights reserved. Quote with attribution and a link.
---

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

## Affected packages

- npm `hull.js` >= 0.2.2, < 1.0.10 → fixed: 1.0.10

## 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

## Sources

- [GitHub Advisory GHSA-q849-wxrc-vqrp](https://github.com/advisories/GHSA-q849-wxrc-vqrp)
- [github.com](https://github.com/AndriiHeonia/hull/security/advisories/GHSA-q849-wxrc-vqrp)
- [github.com](https://github.com/AndriiHeonia/hull/commit/9de6f9549b74fbb68bf4d5a449147b4c1d7cda0a)

---
Source page: https://erroneo.us/security/ghsa/GHSA-q849-wxrc-vqrp/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
