Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-43370
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:42 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Aug 2024, 23:44 UTC

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.

osv:CVE-2024-43370
Complete source record
{
  "id": "25f281f05bd7d1dbfb822cad9532b83a8b401699cf24c4efe0c26a5589787c3d",
  "url": "https://osv.dev/vulnerability/CVE-2024-43370",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "gettext.js vulnerable to cross-site scripting (XSS)",
    "summary": "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.",
    "evidence": "osv:CVE-2024-43370",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-43370",
      "aliases": [
        "CVE-2024-43370",
        "GHSA-vwhg-jwr4-vxgg"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/guillaumepotier/gettext.js",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5d18cb4e512eba1210ab7cead968ed85483323e4"
                },
                {
                  "fixed": "8150aeba833183e14c2291a8a148b8f79d1d68d8"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.0.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8150aeba833183e14c2291a8a148b8f79d1d68d8"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.0.2",
            "v2.0.1",
            "v2.0.0",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.1",
            "v1.0.0",
            "v0.9.0",
            "v0.8.0",
            "0.7.0",
            "0.6.0",
            "0.5.5",
            "0.5.4",
            "0.5.3",
            "0.5.2",
            "0.5.1",
            "0.5.0",
            "0.4.0",
            "0.3.0",
            "0.2.0",
            "0.0.2",
            "0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43370.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.017921029Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43370.json",
        "https://github.com/guillaumepotier/gettext.js/security/advisories/GHSA-vwhg-jwr4-vxgg",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-43370",
        "https://github.com/guillaumepotier/gettext.js/commit/8150aeba833183e14c2291a8a148b8f79d1d68d8"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43370.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-43370",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504203,
  "published_at": "2024-08-15T23:44:47.808+00:00"
}