Skip to content

Commit b05f8ad

Browse files
antonisclaude
andauthored
fix: pin fast-xml-parser to ^5.3.6 to address entity encoding bypass (#5701)
Adds a yarn resolution to force fast-xml-parser to >=5.3.6, patching the regex injection vulnerability in DOCTYPE entity names (CVE affecting >=4.1.3 <5.3.5). The package is a transitive dev dependency via @react-native-community/cli and cannot be fixed by a non-major bump. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3f67e92 commit b05f8ad

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
},
6161
"resolutions": {
6262
"appium-chromedriver@npm:5.6.73/@xmldom/xmldom": "0.8.10",
63+
"fast-xml-parser": "^5.3.6",
6364
"form-data": "4.0.4",
6465
"tar-fs": "^3.1.1",
6566
"tar": "^7.5.7"

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20114,14 +20114,14 @@ __metadata:
2011420114
languageName: node
2011520115
linkType: hard
2011620116

20117-
"fast-xml-parser@npm:^4.0.12, fast-xml-parser@npm:^4.2.4, fast-xml-parser@npm:^4.4.1":
20118-
version: 4.4.1
20119-
resolution: "fast-xml-parser@npm:4.4.1"
20117+
"fast-xml-parser@npm:^5.3.6":
20118+
version: 5.3.7
20119+
resolution: "fast-xml-parser@npm:5.3.7"
2012020120
dependencies:
20121-
strnum: "npm:^1.0.5"
20121+
strnum: ^2.1.2
2012220122
bin:
2012320123
fxparser: src/cli/cli.js
20124-
checksum: f440c01cd141b98789ae777503bcb6727393296094cc82924ae9f88a5b971baa4eec7e65306c7e07746534caa661fc83694ff437d9012dc84dee39dfbfaab947
20124+
checksum: 0bb307bc63a01c079ae28b6b62eeea0007d787e6ab47dfca493f40305f78aeedea2906b2632bf0eb9d4d868e748c77c70393a808441fb5949c9d2e6f8f2825f0
2012520125
languageName: node
2012620126
linkType: hard
2012720127

@@ -32577,10 +32577,10 @@ __metadata:
3257732577
languageName: node
3257832578
linkType: hard
3257932579

32580-
"strnum@npm:^1.0.5":
32581-
version: 1.0.5
32582-
resolution: "strnum@npm:1.0.5"
32583-
checksum: 651b2031db5da1bf4a77fdd2f116a8ac8055157c5420f5569f64879133825915ad461513e7202a16d7fec63c54fd822410d0962f8ca12385c4334891b9ae6dd2
32580+
"strnum@npm:^2.1.2":
32581+
version: 2.1.2
32582+
resolution: "strnum@npm:2.1.2"
32583+
checksum: 755e8327ee68201d700169ceee097ea52da7b675f4521442a8dbd1517021f89a91399213c446d1bf3d1123ca1896a76f0ff076d04c88ffe6056e78828ce6f60a
3258432584
languageName: node
3258532585
linkType: hard
3258632586

0 commit comments

Comments
 (0)