CVE-2024-23339 hoolock does not block Prototype pollution with object-path related utilities

Medium 6.3 Published Updated

Prototype pollution in hoolock allows attackers to modify object prototypes, potentially leading to code execution or privilege escalation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-23339?

CVE-2024-23339 is a medium-severity vulnerability in elijahharry hoolock, published on 22 Jan 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

hoolock is a suite of lightweight utilities designed to maintain a small footprint when bundled. Starting in version 2.0.0 and prior to version 2.2.1, utility functions related to object paths (`get`, `set`, and `update`) did not block attempts to access or alter object prototypes. Starting in version 2.2.1, the `get`, `set` and `update` functions throw a `TypeError` when a user attempts to access or alter inherited properties.

Weakness: CWE-1321

Which versions are affected by CVE-2024-23339?

2 open source packages ship an affected version, including hoolock. It affects 1 product.

PackageAffectedFixed in
hoolock npmFrom 2.0.02.2.1
hoolock npmFrom 2.0.02.2.1

Products include Elijahharry Hoolock.

How do I fix CVE-2024-23339?

Upgrade hoolock to 2.2.1 or later.

Is CVE-2024-23339 being exploited?

There is no known exploitation of CVE-2024-23339 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-4c2g-hx49-7h25.

Is CVE-2024-23339 in your software?

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

Check your SBOMs for free