Every CVE Search/ Get API key

CVE-2023-0842

xml2js 0.4.23 - Prototype Pollution

5.3 MediumFix available

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
Low
Availability
None

Exploit likelihood

1.39%Up 1.3 points since Apr 6, 2023
90%50%10%1%

What each source reports

NVD Score used 5.3

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.

Record
CVE-2023-0842
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-1321
Updated
2026-11-02
CVE List 5.3

xml2js 0.4.23 - Prototype Pollution

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.

Record
CVE-2023-0842
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-1321
Updated
2026-11-02
EUVDEUVD-2023-1222 5.3

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.

Record
EUVD-2023-1222
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-776f-qx25-q3cc 5.3

xml2js is vulnerable to prototype pollution

xml2js versions before 0.5.0 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.

Record
GHSA-776f-qx25-q3cc
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-1321
Updated
2026-11-02
OSV 5.3

xml2js 0.4.23 - Prototype Pollution

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.

Record
CVE-2023-0842
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2023-0842 5.3

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.

Record
DEBIAN-CVE-2023-0842
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
Show 6 moreShow less
OSVGHSA-776f-qx25-q3cc 5.3

xml2js is vulnerable to prototype pollution

xml2js versions before 0.5.0 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.

Record
GHSA-776f-qx25-q3cc
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness
CWE-1321
Updated
2026-11-02
OSVUBUNTU-CVE-2023-0842 5.3

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.

Record
UBUNTU-CVE-2023-0842
CVSS 3.1
5.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Updated
2026-11-02
OSVCLSA-2026-1773879452 No score

TuxCare security update for xml2js (1 CVE)

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

Record
CLSA-2026-1773879452
Updated
2026-11-02
OSVCLSA-2026-1773879453 No score

TuxCare security update for xml2js (1 CVE)

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

Record
CLSA-2026-1773879453
Updated
2026-11-02
OSVCLSA-2026-1773879454 No score

TuxCare security update for xml2js (1 CVE)

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

Record
CLSA-2026-1773879454
Updated
2026-11-02
OSVCLSA-2026-1777336771 No score

TuxCare security update for xml2js (1 CVE)

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

Record
CLSA-2026-1777336771
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
xml2js
npm
before 0.5.0
0.5.0
xml2js
TuxCare:npm
0.4.23-tuxcare.0 up to 0.4.23-tuxcare.1, plus listed versions
0.4.23
0.4.23-tuxcare.1
xml2js
TuxCare:npm
0.2.8-tuxcare.0 up to 0.2.8-tuxcare.1, plus listed versions
0.2.8
0.2.8-tuxcare.1
xml2js
TuxCare:npm
0.2.6-tuxcare.0 up to 0.2.6-tuxcare.1, plus listed versions
0.2.6
0.2.6-tuxcare.1
xml2js
TuxCare:npm
0.4.4-tuxcare.0 up to 0.4.4-tuxcare.1, plus listed versions
0.4.4
0.4.4-tuxcare.1
node-xml2js
Debian:12
before 0.4.23+~cs15.4.0+dfsg-7
0.4.23+~cs15.4.0+dfsg-7
node-xml2js
Debian:13
before 0.4.23+~cs15.4.0+dfsg-7
0.4.23+~cs15.4.0+dfsg-7
node-xml2js
Debian:14
before 0.4.23+~cs15.4.0+dfsg-7
0.4.23+~cs15.4.0+dfsg-7
node-xml2js
Debian:10
before 0.2.8-1.1+deb11u1~deb10u1, plus listed versions
0.2.8-10.2.8-1.1
0.2.8-1.1+deb11u1~deb10u1
node-xml2js
Ubuntu:16.04:LTS
All versions, plus listed versions
0.2.8-1
None known
Show 7 moreShow less
Affected packages
PackageAffectedFixed
node-xml2js
Ubuntu:18.04:LTS
All versions, plus listed versions
0.2.8-1
None known
node-xml2js
Ubuntu:20.04:LTS
All versions, plus listed versions
0.2.8-1
None known
node-xml2js
Ubuntu:22.04:LTS
All versions, plus listed versions
0.2.8-1.10.4.23+~cs15.4.0+dfsg-2
None known
node-xml2js
Ubuntu:24.04:LTS
All versions, plus listed versions
0.6.2+~cs15.1.1-1
None known
node-xml2js
Ubuntu:25.10
All versions, plus listed versions
0.6.2+~cs15.1.1-1
None known
node-xml2js
Ubuntu:26.10
All versions, plus listed versions
0.6.2+~cs15.1.1-1
None known
node-xml2js
Ubuntu:26.04:LTS
All versions, plus listed versions
0.6.2+~cs15.1.1-1
None known

History

History
RecordedChangedSources
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-0842 is a medium vulnerability (CVSS 5.3) in Xml2js Project Xml2js, published April 5, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.39%, the 72nd percentile. Fixed in xml2js 0.5.0.

References

Show 7 moreShow less
MoveEnter Open