Skip to content

Commit c0dac29

Browse files
oriensiddsriv
andauthored
chore(deps): bump fast-xml-parser from 5.3.6 to 5.4.1 (#7796)
* chore(deps): bump fast-xml-parser from 5.3.6 to 5.4.1 Resolves CVE-2026-27942 * chore(xml-builder): increase max nested tags depth for this bump * chore(xml-builder): increase maxNestedTags to 1024 for test compatibility * chore: trigger CI * chore: trigger CI --------- Co-authored-by: Siddharth Srivastava <sidddsri@amazon.com>
1 parent e373aa8 commit c0dac29

5 files changed

Lines changed: 19 additions & 10 deletions

File tree

packages-internal/xml-builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "XML utilities for the AWS SDK",
55
"dependencies": {
66
"@smithy/types": "^4.13.0",
7-
"fast-xml-parser": "5.3.6",
7+
"fast-xml-parser": "5.4.1",
88
"tslib": "^2.6.2"
99
},
1010
"scripts": {

packages-internal/xml-builder/src/xml-parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const parser = new XMLParser({
88
parseTagValue: false,
99
trimValues: false,
1010
tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
11+
maxNestedTags: 1024,
1112
});
1213
parser.addEntity("#xD", "\r");
1314
parser.addEntity("#10", "\n");

private/aws-protocoltests-restxml-schema/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@smithy/util-stream": "^4.5.15",
6363
"@smithy/util-utf8": "^4.2.1",
6464
"entities": "2.2.0",
65-
"fast-xml-parser": "5.3.6",
65+
"fast-xml-parser": "5.4.1",
6666
"tslib": "^2.6.2"
6767
},
6868
"devDependencies": {

private/aws-protocoltests-restxml/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@smithy/util-utf8": "^4.2.1",
6565
"@smithy/uuid": "^1.1.1",
6666
"entities": "2.2.0",
67-
"fast-xml-parser": "5.3.6",
67+
"fast-xml-parser": "5.4.1",
6868
"tslib": "^2.6.2"
6969
},
7070
"devDependencies": {

yarn.lock

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ __metadata:
11761176
concurrently: "npm:7.0.0"
11771177
downlevel-dts: "npm:0.10.1"
11781178
entities: "npm:2.2.0"
1179-
fast-xml-parser: "npm:5.3.6"
1179+
fast-xml-parser: "npm:5.4.1"
11801180
premove: "npm:4.0.0"
11811181
tslib: "npm:^2.6.2"
11821182
typescript: "npm:~5.8.3"
@@ -1236,7 +1236,7 @@ __metadata:
12361236
concurrently: "npm:7.0.0"
12371237
downlevel-dts: "npm:0.10.1"
12381238
entities: "npm:2.2.0"
1239-
fast-xml-parser: "npm:5.3.6"
1239+
fast-xml-parser: "npm:5.4.1"
12401240
premove: "npm:4.0.0"
12411241
tslib: "npm:^2.6.2"
12421242
typescript: "npm:~5.8.3"
@@ -24963,7 +24963,7 @@ __metadata:
2496324963
"@tsconfig/recommended": "npm:1.0.1"
2496424964
concurrently: "npm:7.0.0"
2496524965
downlevel-dts: "npm:0.10.1"
24966-
fast-xml-parser: "npm:5.3.6"
24966+
fast-xml-parser: "npm:5.4.1"
2496724967
premove: "npm:4.0.0"
2496824968
tslib: "npm:^2.6.2"
2496924969
typescript: "npm:~5.8.3"
@@ -34033,14 +34033,22 @@ __metadata:
3403334033
languageName: node
3403434034
linkType: hard
3403534035

34036-
"fast-xml-parser@npm:5.3.6":
34037-
version: 5.3.6
34038-
resolution: "fast-xml-parser@npm:5.3.6"
34036+
"fast-xml-builder@npm:^1.0.0":
34037+
version: 1.0.0
34038+
resolution: "fast-xml-builder@npm:1.0.0"
34039+
checksum: 10c0/2631fda265c81e8008884d08944eeed4e284430116faa5b8b7a43a3602af367223b7bf01c933215c9ad2358b8666e45041bc038d64877156a2f88821841b3014
34040+
languageName: node
34041+
linkType: hard
34042+
34043+
"fast-xml-parser@npm:5.4.1":
34044+
version: 5.4.1
34045+
resolution: "fast-xml-parser@npm:5.4.1"
3403934046
dependencies:
34047+
fast-xml-builder: "npm:^1.0.0"
3404034048
strnum: "npm:^2.1.2"
3404134049
bin:
3404234050
fxparser: src/cli/cli.js
34043-
checksum: 10c0/0150cc0566f327a76115de8b11628d717fb179010ed9bb77c52e579a7e6055a0f92f42f83678a6f1ec5b74411faec09713cb1f9b94bc687068ad86884a9199fa
34051+
checksum: 10c0/8c696438a0c64135faf93ea6a93879208d649b7c9a3293d30d6eb750dc7f766fd083c0df5a82786b60809c3ead64fad155f28dbed25efea91017aaf9f64c91e5
3404434052
languageName: node
3404534053
linkType: hard
3404634054

0 commit comments

Comments
 (0)