{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "0.6.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "cf3e061e22e98152b88068c2345bc02581f4d6c7"
            }
          ],
          "repo": "https://github.com/leonidas-from-xiv/node-xml2js",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-91"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142213.json"
  },
  "details": "xml2js through 0.6.2 contains an XML injection vulnerability that allows attackers to break out of CDATA sections because escapeCDATA() in lib/builder.js only escapes the first ]]\u003e sequence. Attackers controlling string values serialized with the cdata option can include a second ]]\u003e to inject arbitrary elements and attributes, altering downstream XML parsing.",
  "id": "CVE-2026-142213",
  "modified": "2026-12-02T20:45:19.588882044Z",
  "published": "2026-12-02T16:50:33.230Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142213.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/Leonidas-from-XIV/node-xml2js"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.js#L15-L21"
    },
    {
      "type": "FIX",
      "url": "https://github.com/Leonidas-from-XIV/node-xml2js/pull/724"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142213"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escaping"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "xml2js through 0.6.2 XML Injection via Builder CDATA Escaping"
}