garlictech / yaha

Yet another hiking app
0 stars 0 forks source link

chore(deps): update dependency fast-xml-parser to v4.2.4 [security] #953

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
fast-xml-parser 4.0.9 -> 4.2.4 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2023-34104

Impact

"fast-xml-parser" allows special characters in entity names, which are not escaped or sanitized. Since the entity name is used for creating a regex for searching and replacing entities in the XML body, an attacker can abuse it for DoS attacks. By crafting an entity name that results in an intentionally bad performing regex and utilizing it in the entity replacement step of the parser, this can cause the parser to stall for an indefinite amount of time.

Patches

The problem has been resolved in v4.2.4

Workarounds

Avoid using DOCTYPE parsing by processEntities: false option.

References

Are there any links users can visit to find out more?

CVE-2023-26920

Impact

As a part of this vulnerability, user was able to se code using __proto__ as a tag or attribute name.

const { XMLParser, XMLBuilder, XMLValidator} = require("fast-xml-parser");

let XMLdata = "<__proto__><polluted>hacked</polluted></__proto__>"

const parser = new XMLParser();
let jObj = parser.parse(XMLdata);

console.log(jObj.polluted) // should return hacked

Patches

The problem has been patched in v4.1.2

Workarounds

User can check for "proto" in the XML string before parsing it to the parser.

References

https://gist.github.com/Sudistark/a5a45bd0804d522a1392cb5023aa7ef7


Release Notes

NaturalIntelligence/fast-xml-parser (fast-xml-parser) ### [`v4.2.4`](https://togithub.com/NaturalIntelligence/fast-xml-parser/releases/tag/v4.2.4): Security Fix [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.2.3...v4.2.4) Update to this release if you use entity parsing in Fast XML Parser. ### [`v4.2.3`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/4.2.2...v4.2.3) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/4.2.2...v4.2.3) ### [`v4.2.2`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/4.2.1...4.2.2) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/4.2.1...4.2.2) ### [`v4.2.1`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.2.0...4.2.1) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.2.0...4.2.1) ### [`v4.2.0`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.4...v4.2.0) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.4...v4.2.0) ### [`v4.1.4`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.3...v4.1.4) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.3...v4.1.4) ### [`v4.1.3`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.2...v4.1.3) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.2...v4.1.3) ### [`v4.1.2`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.1...v4.1.2) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.1...v4.1.2) ### [`v4.1.1`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.0...v4.1.1) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.1.0...v4.1.1) ### [`v4.1.0`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.15...v4.1.0) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.15...v4.1.0) ### [`v4.0.15`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.14...v4.0.15) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.14...v4.0.15) ### [`v4.0.14`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.13...v4.0.14) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.13...v4.0.14) ### [`v4.0.13`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.12...v4.0.13) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.12...v4.0.13) ### [`v4.0.12`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.11...v4.0.12) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.11...v4.0.12) ### [`v4.0.11`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.10...v4.0.11) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.10...v4.0.11) ### [`v4.0.10`](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.9...v4.0.10) [Compare Source](https://togithub.com/NaturalIntelligence/fast-xml-parser/compare/v4.0.9...v4.0.10)

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

renovate[bot] commented 1 year ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (4.2.4). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.