Skip to content

Commit 1b80705

Browse files
lucygramleyCopilot
andauthored
[S360] Fix CVE-2026-4800: Update lodash to 4.18.x (#2545)
* Fix CVE-2026-4800: Update lodash to 4.18.x Updates lodash from 4.17.23 to 4.18.1 across all projects to fix CVE-2026-4800 (Code Injection via _.template imports key names). Updated lockfiles: - Nodejs/Tests/MockProjects/reactappwithjestteststypescript - Nodejs/Tests/MockProjects/NodeAppWithAngularTests - Nodejs/Tests/MockProjects/reactappwithjesttestsjavascript - Root package-lock.json S360 KPI: [SFI-ES5.2] 1ES Open Source Vulnerabilities Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Use overrides instead of direct dependency for lodash fix Move lodash ^4.18.1 from dependencies to overrides in all package.json files. This forces the transitive dependency to resolve to the patched version without adding lodash as a direct dependency. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a1f791e commit 1b80705

8 files changed

Lines changed: 65 additions & 15 deletions

File tree

Nodejs/Tests/MockProjects/NodeAppWithAngularTests/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Nodejs/Tests/MockProjects/NodeAppWithAngularTests/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
},
4343
"overrides": {
4444
"brace-expansion": "1.1.13",
45-
"js-yaml": "3.14.2"
45+
"js-yaml": "3.14.2",
46+
"lodash": "^4.18.1"
4647
}
4748
}

Nodejs/Tests/MockProjects/reactappwithjesttestsjavascript/package-lock.json

Lines changed: 47 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Nodejs/Tests/MockProjects/reactappwithjesttestsjavascript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@babel/core": "7.26.10",
4040
"@babel/helpers": "7.26.10",
4141
"@babel/runtime": "7.26.10",
42-
"brace-expansion": "1.1.13"
42+
"brace-expansion": "1.1.13",
43+
"lodash": "^4.18.1"
4344
}
4445
}

Nodejs/Tests/MockProjects/reactappwithjestteststypescript/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Nodejs/Tests/MockProjects/reactappwithjestteststypescript/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@babel/helpers": "7.26.10",
4646
"@babel/runtime": "7.26.10",
4747
"js-yaml": "4.1.1",
48-
"brace-expansion": "1.1.13"
48+
"brace-expansion": "1.1.13",
49+
"lodash": "^4.18.1"
4950
}
5051
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"eslint-plugin-vue": "^6.0.1",
1717
"react": "^16.12.0",
1818
"typescript": "3.6.4"
19+
},
20+
"overrides": {
21+
"lodash": "^4.18.1"
1922
}
2023
}

0 commit comments

Comments
 (0)