Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml2js is vulnerable to prototype pollution #66

Open
altescape opened this issue Apr 20, 2023 · 0 comments
Open

xml2js is vulnerable to prototype pollution #66

altescape opened this issue Apr 20, 2023 · 0 comments

Comments

@altescape
Copy link

altescape commented Apr 20, 2023

Just echoing the Dependabot warning that we had on our repo:

Dependabot cannot update xml2js to a non-vulnerable version
The latest possible version that can be installed is 0.4.23 because of the following conflicting dependencies:

@bbc/nightwatch-vrt@2.0.0 requires xml2js@^0.4.5 via a transitive dependency on parse-bmfont-xml@1.1.4
No patched version available for xml2js
The earliest fixed version is 0.5.0.

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.

Temporary solution

Add the following to your package.json

"overrides": {
  "xml2js": "0.5.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant