Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. node-gettext
  4. ›
  5. CVE-2024-21528

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

September 10, 2024 (updated November 18, 2024)

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.

References

  • github.com/advisories/GHSA-g974-hxvm-x689
  • github.com/alexanderwallin/node-gettext
  • github.com/alexanderwallin/node-gettext/blob/65d9670f691c2eeca40dce129c95bcf8b613d344/lib/gettext.js
  • nvd.nist.gov/vuln/detail/CVE-2024-21528
  • security.snyk.io/vuln/SNYK-JS-NODEGETTEXT-6100943

Code Behaviors & Features

Detect and mitigate CVE-2024-21528 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/node-gettext/CVE-2024-21528.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:11 +0000.