PT-2023-3087 · Xml2Js · Xml2Js

·

CVE-2023-0842

·

Publicado

2023-04-05

·

Atualizado

2026-06-09

CVSS v3.1

5.3

Média

VetorAV: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

Correção

Prototype Pollution

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

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

Produtos afetados

Xml2Js