Skip to content

CVE-2024-43370 gettext.js vulnerable to cross-site scripting (XSS)

HighCVSS 7.2 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

gettext.js is a GNU gettext port for node and the browser. There is a cross-site scripting (XSS) injection if .po dictionary definition files are corrupted. This vulnerability has been patched in version 2.0.3. As a workaround, control the origin of the definition catalog to prevent the use of this flaw in the definition of plural forms.

Upgrade path

7 packages: 4 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/gettext.js(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/gettext.js(Ubuntu 24.04) All versions No fix listed No fix yet
debian/gettext.js(Debian 12) < 0.7.0-2+deb11u1 0.7.0-2+deb11u1 Fixed
debian/gettext.js(Debian 13) < 0.7.0-4 0.7.0-4 Fixed
debian/gettext.js(Debian 14) < 0.7.0-4 0.7.0-4 Fixed
npm gettext.js(npm) < 2.0.3 2.0.3 Fixed
guillaumepotier gettext.js = < 2.0.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm gettext.js(npm) < 2.0.3 2.0.3
debian/gettext.js(Debian:12) < 0.7.0-2+deb11u1 0.7.0-2+deb11u1
debian/gettext.js(Debian:13) < 0.7.0-4 0.7.0-4
debian/gettext.js(Debian:14) < 0.7.0-4 0.7.0-4
ubuntu/gettext.js(Ubuntu:22.04) All versions No fix listed
guillaumepotier gettext.js = < 2.0.3 No fix listed
ubuntu/gettext.js(Ubuntu:24.04) All versions No fix listed

References