Skip to main content

Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in org.webjars.bowergithub.leonidas-from-xiv:node-xml2js

CVE-2023-0842

  • org.webjars.bowergithub.leonidas-from-xiv:node-xml2js
  • org.webjars.npm:xml2js
  • xml2js
Severity Medium
Score 5.3/10

Summary

The xml2js in versions prior to 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.

  • LOW
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • NONE

CWE-1321 - Prototype Pollution

Prototype pollution is one of the lesser-known vulnerabilities. It allows attackers to abuse the rules of JavaScript by injecting properties into the general object “Object” in JS. Modifying the prototype of “Object” affects the behavior of all objects in the entire app, potentially resulting in denial of service, arbitrary code execution, cross-site scripting, etc.

Advisory Timeline

  • Published