PT-2023-3087 · Xml2Js · Xml2Js

Carlos Bello

·

Published

2023-04-05

·

Updated

2026-06-09

·

CVE-2023-0842

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Name of the Vulnerable Software and Affected Versions xml2js versions prior to 0.5.0
Description The issue is related to uncontrolled modification of object prototype attributes in the xml2js software, which converts XML objects to JavaScript. This can allow a remote attacker to edit properties of the proto object. The vulnerability arises because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.
Recommendations For xml2js versions prior to 0.5.0, update to version 0.5.0 or later to resolve the issue. As a temporary workaround, consider restricting the use of the proto property in the affected application until a patch is available. Avoid using unvalidated JSON keys in the affected API endpoints until the issue is resolved.

Exploit

Fix

Prototype Pollution

Weakness Enumeration

Related Identifiers

BDU:2023-03176
CVE-2023-0842
DLA-3760-1
GHSA-776F-QX25-Q3CC

Affected Products

Xml2Js