Update dependency fast-xml-parser to v5 [SECURITY]#42
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
Update dependency fast-xml-parser to v5 [SECURITY]#42renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
cb2b8a4 to
7b2817a
Compare
7b2817a to
bbc7f15
Compare
bbc7f15 to
bba0216
Compare
bba0216 to
debd035
Compare
debd035 to
abf4b6f
Compare
abf4b6f to
73420b8
Compare
eb4cf72 to
4dcfe6b
Compare
4dcfe6b to
54770c3
Compare
54770c3 to
0bacc4d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.17.6→^5.0.03.17.6→5.7.0fast-xml-parser vulnerable to Prototype Pollution through tag or attribute name
CVE-2023-26920 / GHSA-x3cc-x39p-42qx
More information
Details
Impact
As a part of this vulnerability, user was able to se code using
__proto__as a tag or attribute name.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
Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters
CVE-2026-41650 / GHSA-gh4j-gqv2-49f6
More information
Details
fast-xml-parser XMLBuilder: Comment and CDATA Injection via Unescaped Delimiters
Summary
fast-xml-parser XMLBuilder does not escape the
-->sequence in comment content or the]]>sequence in CDATA sections when building XML from JavaScript objects. This allows XML injection when user-controlled data flows into comments or CDATA elements, leading to XSS, SOAP injection, or data manipulation.Existing CVEs for fast-xml-parser cover different issues:
This finding covers unescaped comment/CDATA delimiters in XMLBuilder - a distinct vulnerability.
Vulnerable Code
File:
src/fxb.jsCompare with attribute/text escaping which IS properly handled via
replaceEntitiesValue().Proof of Concept
Test 1: Comment Injection (XSS in SVG/HTML context)
Output:
Test 2: CDATA Injection (RSS feed)
Output:
Test 3: SOAP Message Injection
Output:
The injected
<Action>deleteAll</Action>appears as a real SOAP action element.Tested Output
All tests run on Node.js v22, fast-xml-parser v5.5.12:
Impact
An attacker who controls data that flows into XML comments or CDATA sections via XMLBuilder can:
<script>tags into XML/SVG/HTML documents served to browsersThis is practically exploitable whenever applications use XMLBuilder to generate XML from data that includes user-controlled content in comments or CDATA (e.g., RSS feeds, SOAP services, SVG generation, config files).
Suggested Fix
Escape delimiters in comment and CDATA content:
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
NaturalIntelligence/fast-xml-parser (fast-xml-parser)
v5.7.0Compare Source
v5.6.0Compare Source
v5.5.12Compare Source
v5.5.11Compare Source
v5.5.10: performance improvment, increase entity expansion default limitCompare Source
jPath: falseFull Changelog: NaturalIntelligence/fast-xml-parser@v5.5.9...v5.5.10
v5.5.9: fix typins and matcher instance in callbacksCompare Source
combine typings file to avoid configuration changes
pass readonly instance of matcher to the call backs to avoid accidental push/pop call
v5.5.8Compare Source
v5.5.7Compare Source
v5.5.6: fix entity expansion and incorrect replacement and performanceCompare Source
Full Changelog: NaturalIntelligence/fast-xml-parser@v5.5.5...v5.5.6
v5.5.5Compare Source
v5.5.4Compare Source
v5.5.3Compare Source
v5.5.2Compare Source
v5.5.1: integrate path-expression-matcherCompare Source
v5.5.0Compare Source
v5.4.2Compare Source
v5.4.1Compare Source
v5.4.0: Separate BuilderCompare Source
XML Builder was the part of fast-xml-parser for years. But considering that any bug in builder may false-alarm the users who are only using parser and vice-versa, we have decided to split it into a separate package.
Migration
To migrate to fast-xml-builder;
From
To
XMLBuilder will be removed from current package in any next major version of this library. So better to migrate.
v5.3.9: support strictReservedNamesCompare Source
Full Changelog: NaturalIntelligence/fast-xml-parser@v5.3.9...v5.3.9
v5.3.8: handle non-array input for XML builder && support maxNestedTagsCompare Source
Full Changelog: NaturalIntelligence/fast-xml-parser@v5.3.7...v5.3.8
v5.3.7: CJS typing fixCompare Source
What's Changed
X2jOptionsat declaration site by @Drarig29 in #787New Contributors
Full Changelog: NaturalIntelligence/fast-xml-parser@v5.3.6...v5.3.7
v5.3.6: Entity security and performanceCompare Source
maxEntitySize,maxExpansionDepth,maxTotalExpansions,maxExpandedLength,allowedTags,tagFilterFull Changelog: NaturalIntelligence/fast-xml-parser@v5.3.5...v5.3.6
v5.3.5Compare Source
v5.3.4: fix: handle HTML numeric and hex entities when out of rangeCompare Source
v5.3.3: bug fix and performance improvementsCompare Source
v5.3.2Compare Source
v5.3.1Compare Source
v5.3.0Compare Source
v5.2.5Compare Source
v5.2.4Compare Source
v5.2.3Compare Source
v5.2.2: upgrade to ESM module and fixing value parsing issuesCompare Source
Full Changelog: https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md
v5.2.1Compare Source
v5.2.0Compare Source
v5.1.0Compare Source
5.0.9 / 2025-03-14
5.0.8 / 2025-02-27
5.0.7 / 2025-02-25
5.0.6 / 2025-02-20
5.0.5 / 2025-02-20
5.0.4 / 2025-02-20
5.0.3 / 2025-02-20
5.0.2 / 2025-02-20
5.0.1 / 2025-02-19
5.0.0 / 2025-02-19
4.5.2 / 2025-02-18
4.5.1 / 2024-12-15
4.5.0 / 2024-09-03
4.4.1 / 2024-07-28
4.4.0 / 2024-05-18
tagValueProcessor&attributeValueProcessor(#582) (By monholm)4.3.6 / 2024-03-16
4.3.5 / 2024-02-24
4.3.4 / 2024-01-10
4.3.3 / 2024-01-10
4.3.2 / 2023-10-02
jObj.hasOwnPropertywhen give input is null (By Arda TANRIKULU)4.3.1 / 2023-09-24
4.3.0 / 2023-09-20
4.2.7 / 2023-07-30
4.2.6 / 2023-07-17
4.2.5 / 2023-06-22
4.2.4 / 2023-06-06
4.2.3 / 2023-06-05
4.2.2 / 2023-04-18
4.2.1 / 2023-04-18
4.2.0 / 2023-04-09
updateTagparser property4.1.4 / 2023-04-08
oneListGroupto group repeated children tags udder single group4.1.3 / 2023-02-26
4.1.2 / 2023-02-12
4.1.1 / 2023-02-03
4.1.0 / 2023-02-02
4.0.15 / 2023-01-25
4.0.14 / 2023-01-22
4.0.13 / 2023-01-07
transformAttributeName(By Erik Rothoff Andersson)4.0.12 / 2022-11-19
4.0.11 / 2022-10-05
4.0.10 / 2022-09-14
4.0.9 / 2022-07-10
4.0.8 / 2022-05-28
4.0.7 / 2022-03-18
4.0.6 / 2022-03-08
4.0.5 / 2022-03-06
4.0.4 / 2022-03-03
4.0.3 / 2022-02-15
4.0.2 / 2022-02-04
suppressUnpairedNodeignoreDeclarationandignorePiTags<!--> ...#423&4.0.1 / 2022-01-08
4.0.0 / 2022-01-06
esmbranch.4.0.0-beta.8 / 2021-12-13
4.0.0-beta.7 / 2021-12-09
4.0.0-beta.6 / 2021-12-05
suppressBooleanAttributesby XML Builder for attributes with valuetrue.4.0.0-beta.5 / 2021-12-04
4.0.0-beta.4 / 2021-12-02
4.0.0-beta.3 / 2021-11-30
attrMaptoattibutesin parser output whenpreserveOrder:truecdataTagNametocdataPropNamecommentPropNameattrNodeNametoattributesGroupNameattrValueProcessortoattributeValueProcessorparseNodeValuetoparseTagValueignoreNameSpacetoremoveNSPrefixnumParseOptionstonumberParseOptionssuppressEmptyNodeisArrayoption is added to parse a tag into arraypreserveOrderoption is added to render XML in such a way that the result js Object maintains the order of properties same as in XML.tagValueProcessorandattributeValueProcessorare changes with extra input parameters3.21.1 / 2021-10-31
3.21.0 / 2021-10-25
rootNodeNameto set tag name for array input when converting js object to XML.alwaysCreateTextNodeto force text node creation (by: @massimo-ua){ InvalidXml: "Invalid '[ \"rootNode\"]' found." }→{InvalidTag: "Unclosed tag 'rootNode'."}{ InvalidTag: "Closing tag 'rootNode' is expected inplace of 'rootnode'." }→{ InvalidTag: "Expected closing tag 'rootNode' (opened in line 1) instead of closing tag 'rootnode'."}3.20.1 / 2021-09-25
3.20.0 / 2021-09-10
3.19.0 / 2021-03-14
3.18.0 / 2021-02-05
3.17.4 / 2020-06-07
<tag >space as attribute string3.17.3 / 2020-05-23
3.17.2 / 2020-05-23
3.17.1 / 2020-05-19
3.17.0 / 2020-05-18
3.16.0 / 2020-01-12
3.15.1 / 2019-12-09
3.15.0 / 2019-11-23
3.14.0 / 2019-10-25
3.13.0 / 2019-10-02
3.12.21 / 2019-10-02
3.12.20 / 2019-08-16
3.12.19 / 2019-07-28
tagValueProcessorwill receive the original value instead of string always) (breaking change)3.12.18 / 2019-07-27
3.12.17 / 2019-07-14
3.12.16 / 2019-03-23
Accept the list of tags which are not required to be parsed. Instead, all the nested tag and data will be assigned as string.
3.12.12 / 2019-01-11
3.12.11 / 2018-12-24
3.12.9 / 2018-11-23
3.12.8 / 2018-11-22
3.12.6 / 2018-11-10
3.12.4 / 2018-09-12
3.12.3 / 2018-09-12
3.12.2 / 2018-09-11
3.12.0 / 2018-08-06
3.11.2 / 2018-07-23
3.11.1 / 2018-06-05
3.11.0 / 2018-05-20
3.10.0 / 2018-05-13
3.9.11 / 2018-05-09
3.3.10 / 2018-04-23
3.3.9 / 2018-04-18
3.3.8 / 2018-04-17
3.3.7 / 2018-04-14
#71 from bb/master
first draft of typings for typescript
#69
#70 from bb/patch-1
fix some typos in readme
3.3.6 / 2018-03-21
3.3.5 / 2018-03-15
3.3.4 / 2018-03-14
3.3.0 / 2018-03-05
parseToNimnmethod.with more light opencollective-postinstall"
This reverts commit
d47aa71.Keep undefined nodes out of the XML output : This is useful when you are deleting nodes from the JSON and rewriting XML.
3.2.4 / 2018-03-01
3.2.3 / 2018-02-28
3.2.2 / 2018-02-22
3.2.1 / 2018-02-17
3.2.0 / 2018-02-16
3.0.1 / 2018-02-09
3.0.0 / 2018-02-08
2.9.4 / 2018-02-02
2.9.3 / 2018-01-26
2.9.2 / 2018-01-18
2.9.1 / 2018-01-16
2.9.0 / 2018-01-10
Ignore DOCTYPE validation.
2.8.3 / 2017-12-15
2.8.2 / 2017-12-04
2.8.1 / 2017-12-01
2.8.0 / 2017-11-29
2.7.4 / 2017-09-22
2.7.3 / 2017-08-02
2.7.2 / 2017-07-30
2.7.1 / 2017-07-26
2.7.0 / 2017-07-25
2.6.0 / 2017-07-14
2.5.1 / 2017-07-01
2.5.0 / 2017-06-25
2.4.4 / 2017-06-08
2.4.3 / 2017-06-05
2.4.1 / 2017-04-14
2.3.1 / 2017-03-15
2.3.0 / 2017-02-26
2.2.1 / 2017-02-05
v5.0.9Compare Source
v5.0.8: Summary update on all the previous releases from v4.2.4Compare Source
Note: Release section in not updated frequently. Please check CHANGELOG or Tags for latest release information.
v5.0.7Compare Source
v5.0.6Compare Source
v5.0.5Compare Source
v5.0.4Compare Source
v5.0.3Compare Source
v5.0.2Compare Source
v5.0.1Compare Source
v5.0.0Compare Source
v4.5.6Compare Source
v4.5.5Compare Source
v4.5.4Compare Source
v4.5.3Compare Source
v4.5.2Compare Source
v4.5.1Compare Source
v4.5.0Compare Source
v4.4.1Compare Source
v4.4.0Compare Source
v4.3.6Compare Source
v4.3.5Compare Source
v4.3.4Compare Source
v4.3.3Compare Source
v4.3.2Compare Source
v4.3.1Compare Source
v4.3.0Compare Source
v4.2.7Compare Source
v4.2.6Compare Source
v4.2.5Compare Source
[
v4.2.4](https://redirect.github.cConfiguration
📅 Schedule: (UTC)
🚦 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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.