MODERATE 5.3

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)

ArtifactAffected versionsFixed 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

1affected artifacts
9affected versions
6dependent artifacts (est.)
13dependent versions

33% of the dependent artifacts (2) still pull an affected version in their latest release.

DepthDependent versions
Direct
12
2 hops
1

Most used dependents

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