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

- Severity: Medium 5.9 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2024-09-10T05:00:01.556Z
- Modified: 2026-06-17T07:09:41.020Z
- Also known as: GHSA-g974-hxvm-x689
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- node-gettext: before *
- node-gettext (npm): up to 3.0.0

## Every score

- snyk: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- GitHub: CVSS:3.1 5.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://security.snyk.io/vuln/SNYK-JS-NODEGETTEXT-6100943> (web)
- <https://github.com/alexanderwallin/node-gettext/blob/65d9670f691c2eeca40dce129c95bcf8b613d344/lib/gettext.js%23L113>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21528> (advisory)
- <https://github.com/alexanderwallin/node-gettext> (package)
- <https://github.com/alexanderwallin/node-gettext/blob/65d9670f691c2eeca40dce129c95bcf8b613d344/lib/gettext.js#L113> (web)

## Sources

- CVE List: [CVE-2024-21528](https://www.cve.org/CVERecord?id=CVE-2024-21528), CVE Terms of Use, modified 2024-11-12
- GitHub Advisory Database: [GHSA-g974-hxvm-x689](https://github.com/advisories/GHSA-g974-hxvm-x689), CC-BY-4.0, modified 2024-11-18
- NVD: [CVE-2024-21528](https://nvd.nist.gov/vuln/detail/CVE-2024-21528), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21528 · Whole record: https://cve.day/CVE-2024-21528.json · Rebuilt by cve.day 2026-11-25T22:58:45.201Z
