Every CVESearch/Get API key

CVE-2026-142213

xml2js through 0.6.2 XML Injection via Builder CDATA Escaping (TuxCare:npm)

Explain with AI
ChatGPTClaudeGoogle AI
Severity
6.3Medium
Network attack, no privileges, no user interactionCVSS 4.0, CVE List
Exploitation
Unknown
No source reports exploitation yet.
Exploit chance
0.48% in 30 days
Percentile43rd
EPSS, scored
Listed fix
0.6.2-tuxcare.1 for xml2js
From OSV1 more listed version

Overview

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 ]]> sequence. Attackers controlling string values serialized with the cdata option can include a second ]]> to inject arbitrary elements and attributes, altering downstream XML parsing.

CVSS 4.0 vector

Exploitability

Attack vector
Network
Complexity
High
Attack requirements
Present
Privileges needed
None
User interaction
None

Impact on the vulnerable system

Confidentiality
None
Integrity
Low
Availability
None

Impact on subsequent systems

Confidentiality
None
Integrity
None
Availability
None
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

Exploit chance over time

Unchanged since Dec 3, 2026
EPSS score 0.48% every day from Dec 3, 2026 to Dec 4, 2026.

Affected

Packages 1

Affected packages
PackageAffectedFixed
xml2js
TuxCare:npm
0.6.2-tuxcare.0 up to 0.6.2-tuxcare.1, plus listed versions
0.6.2
0.6.2-tuxcare.1
0.6.0-tuxcare.0 up to 0.6.0-tuxcare.1, plus listed versions
0.6.0
0.6.0-tuxcare.1

Products 1

Sources

CVE List Score usedCVSS 4.06.3

xml2js through 0.6.2 XML Injection via Builder CDATA Escaping

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 ]]> sequence. Attackers controlling string values serialized with the cdata option can include a second ]]> to inject arbitrary elements and attributes, altering downstream XML parsing.

Record
CVE-2026-142213
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-91
Updated
2026-12-02
EUVDEUVD-2026-141617CVSS 4.06.3

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 ]]> sequence. Attackers controlling string values serialized with the cdata option can include a second ]]> to inject arbitrary elements and attributes, altering downstream XML parsing.

Record
EUVD-2026-141617
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Updated
2026-12-02
GitHub AdvisoriesGHSA-rqv5-mfjj-pgfrCVSS 4.06.3

xml2js through 0.6.2 contains an XML injection vulnerability that allows attackers to break out...

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 ]]> sequence. Attackers controlling string values serialized with the cdata option can include a second ]]> to inject arbitrary elements and attributes, altering downstream XML parsing.

Record
GHSA-rqv5-mfjj-pgfr
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-91
Updated
2026-12-02
NVDCVSS 4.06.3

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 ]]> sequence. Attackers controlling string values serialized with the cdata option can include a second ]]> to inject arbitrary elements and attributes, altering downstream XML parsing.

Record
CVE-2026-142213
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1
3.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-91
Updated
2026-12-02
OSVCVSS 4.06.3

xml2js through 0.6.2 XML Injection via Builder CDATA Escaping

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 ]]> sequence. Attackers controlling string values serialized with the cdata option can include a second ]]> to inject arbitrary elements and attributes, altering downstream XML parsing.

Record
CVE-2026-142213
CVSS 4.0
6.3 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Weakness
CWE-91
Updated
2026-12-03
OSVCLSA-2026-1796393842No score

TuxCare security update for xml2js (1 CVE)

TuxCare rebuilt xml2js to address 1 CVE. Fixed in 0.6.2-tuxcare.1.

Record
CLSA-2026-1796393842
Updated
2026-12-04
OSVCLSA-2026-1796414779No score

TuxCare security update for xml2js (1 CVE)

TuxCare rebuilt xml2js to address 1 CVE. Fixed in 0.6.0-tuxcare.1.

Record
CLSA-2026-1796414779
Updated
2026-12-05

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Affected packages, other IDsOSV
Affected packages, other IDs, key factsOSV
Published dateEUVD
Published dateCVE List, EUVD, NVD
Other IDs, references, severityGitHub Advisories
Other IDs, published dateEUVD
ReferencesOSV
SeverityNVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open