Skip to content

Commit 22ae4e1

Browse files
yosriadyclaude
andauthored
Add pnpm dependency overrides for security vulnerabilities (#3)
* fix: resolve socket.dev security warnings via pnpm overrides Add pnpm.overrides to force patched versions of vulnerable transitive dependencies: fast-xml-parser, node-forge, undici, tar, minimatch, picomatch, and brace-expansion. https://claude.ai/code/session_01YLnaP1E1tMzpnACcD3A6nN * fix: use bounded same-major overrides for transitive dependency CVEs The previous unbounded overrides caused CI failures: - minimatch v10 broke test-exclude@6 (removed default export) - undici v7 raised Node minimum to >=20.18.1 (breaks Node 18) - brace-expansion v5 broke minimatch@5 (different API) Use bounded version ranges (e.g. ">=3.1.5 <4") to keep each consumer on its compatible major line while bumping to patched versions. Remove brace-expansion override as no same-major fix exists. https://claude.ai/code/session_01YLnaP1E1tMzpnACcD3A6nN --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5222b1c commit 22ae4e1

2 files changed

Lines changed: 145 additions & 124 deletions

File tree

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,21 @@
106106
"react-native-device-info": "^14.0.0",
107107
"typescript": "^5.7.3"
108108
},
109+
"pnpm": {
110+
"overrides": {
111+
"fast-xml-parser": ">=4.5.5",
112+
"node-forge": ">=1.4.0",
113+
"undici": ">=6.24.1 <7",
114+
"tar": ">=7.5.13",
115+
"minimatch@3": ">=3.1.5 <4",
116+
"minimatch@5": ">=5.1.9 <6",
117+
"minimatch@9": ">=9.0.9 <10",
118+
"minimatch@10": ">=10.2.4",
119+
"picomatch@2": ">=2.3.2 <3",
120+
"picomatch@3": ">=3.0.2 <4",
121+
"picomatch@4": ">=4.0.4"
122+
}
123+
},
109124
"react-native-builder-bob": {
110125
"source": "src",
111126
"output": "lib",

0 commit comments

Comments
 (0)