CVE-2024-21528 node-gettext vulnerable to Prototype Pollution

Medium 5.9 Published Updated

Prototype pollution in node-gettext allows attackers to manipulate 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
Not needed
Fix
None listed

What is CVE-2024-21528?

CVE-2024-21528 is a medium-severity vulnerability in node-gettext, published on 10 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of the package node-gettext are vulnerable to Prototype Pollution via the addTranslations() function in gettext.js due to improper user input sanitization.

Weakness: CWE-1321

Which versions are affected by CVE-2024-21528?

2 open source packages ship an affected version, including node-gettext.

PackageAffectedFixed in
node-gettext npmAll versions to 3.0.0None
node-gettext npmAll versions to 3.0.0None

How do I fix CVE-2024-21528?

No fix has been published for CVE-2024-21528 yet. Limit exposure of the affected software until one is available.

Is CVE-2024-21528 being exploited?

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

Sources

Also known as GHSA-g974-hxvm-x689.

Is CVE-2024-21528 in your software?

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

Check your SBOMs for free