CVE-2023-0842: xml2js 0.4.23 - Prototype Pollution

Published Apr 5, 2023
·
Updated

xml2js could allow a remote attacker to execute arbitrary code on the system, caused by a prototype pollution. By sending a specially-crafted request, an attacker could exploit this vulnerability to execute arbitrary code on the system.

Other sources

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.

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.

GitHub

Affected Software

3 affected componentsFixes available
npm/xml2js<0.5.0
0.5.0
IBM Watson Knowledge Catalog on-prem<=4.x
Xml2js Project Xml2js=0.4.23

Event History

Apr 5, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·09:30 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-0842?

The severity of CVE-2023-0842 is high, with a score of 7.3.

2

How does CVE-2023-0842 allow an attacker to edit or add new properties to an object?

CVE-2023-0842 allows an attacker to edit or add new properties to an object through prototype pollution.

3

How can an attacker exploit CVE-2023-0842?

An attacker can exploit CVE-2023-0842 by sending a specially-crafted request.

4

What software versions are affected by CVE-2023-0842?

Version 0.4.23 of xml2js and versions up to and including 4.x of IBM Watson Knowledge Catalog on-prem are affected by CVE-2023-0842.

5

Are there any references or additional resources for CVE-2023-0842?

Yes, you can find additional information about CVE-2023-0842 at the following links: [1] https://fluidattacks.com/advisories/myers/ [2] https://github.com/Leonidas-from-XIV/node-xml2js/ [3] https://exchange.xforce.ibmcloud.com/vulnerabilities/252153

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203