{"id":"UBUNTU-CVE-2024-43370","details":"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.","modified":"2025-10-24T05:11:48Z","published":"2024-08-16T02:15:00Z","upstream":["CVE-2024-43370"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-43370"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-43370"},{"type":"REPORT","url":"https://github.com/guillaumepotier/gettext.js/security/advisories/GHSA-vwhg-jwr4-vxgg"}],"affected":[{"package":{"name":"gettext.js","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/gettext.js@0.5.4-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.3-1","0.5.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.5.4-1","binary_name":"libjs-gettext.js"},{"binary_name":"node-gettext.js","binary_version":"0.5.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-43370.json"}},{"package":{"name":"gettext.js","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/gettext.js@0.5.4-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-gettext.js","binary_version":"0.5.4-1"},{"binary_name":"node-gettext.js","binary_version":"0.5.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-43370.json"}},{"package":{"name":"gettext.js","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/gettext.js@0.7.0-2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-gettext.js","binary_version":"0.7.0-2"},{"binary_name":"node-gettext.js","binary_version":"0.7.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-43370.json"}},{"package":{"name":"gettext.js","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/gettext.js@0.7.0-3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.7.0-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.7.0-3","binary_name":"libjs-gettext.js"},{"binary_name":"node-gettext.js","binary_version":"0.7.0-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-43370.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}