CVE-2023-0842
xml2js is vulnerable to prototype pollution
Description
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » xml2jsvia npm xml2js | < 0.5.0 | 0.5.0 |
| org.webjars.npm » xml2jsvia npm xml2js | < 0.5.0 | 0.5.0 |
Blast radius
33% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 12 |
| 2 hops | 1 |
Most used dependents
- org.webjars.npm » aws-sdk4 usages
- org.webjars.npm » protractor4 usages
- org.webjars.npm » selenium-webdriver4 usages
- org.webjars.npm » braintree0 usages
- org.webjars.npm » ionic0 usages
- org.webjars.npm » github-com-aws-aws-sdk-js0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2023-0842 | nvd.nist.gov |
| Package | Leonidas-from-XIV/node-xml2js | github.com |
| Web | Leonidas-from-XIV/node-xml2js issue #663 | github.com |
| Web | Leonidas-from-XIV/node-xml2js pull request #603 | github.com |
| Web | advisories/myers | fluidattacks.com |
| Web | debian-lts-announce/2024/03/msg00013.html | lists.debian.org |
