Skip to content

Commit b256e59

Browse files
geroplona-agent
andauthored
Fix npm security vulnerabilities via yarn resolutions (#21236)
Add resolutions for transitive dependencies with known vulnerabilities: - @babel/traverse: CVE-2023-45133 - browserify-sign: pulls in fixed elliptic - cipher-base: CVE-2025-21531 - elliptic: CVE-2024-48949 - exec-sh: removes vulnerable merge@1.x (GHSA-7wpw-2hjm-89gp) - loader-utils: CVE-2022-37601 - pbkdf2: CVE-2025-21532 - tough-cookie: CVE-2023-26136 Co-authored-by: Ona <no-reply@ona.com>
1 parent 80317ca commit b256e59

3 files changed

Lines changed: 255 additions & 89 deletions

File tree

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
]
2727
},
2828
"resolutions": {
29-
"sha.js": "2.4.12"
29+
"sha.js": "2.4.12",
30+
"@babel/traverse": "^7.23.2",
31+
"browserify-sign": "^4.2.5",
32+
"cipher-base": "^1.0.5",
33+
"elliptic": "^6.6.1",
34+
"loader-utils": "^2.0.4",
35+
"exec-sh": "^0.4.0",
36+
"pbkdf2": "^3.1.3",
37+
"tough-cookie": "^4.1.3"
3038
}
3139
}

resolutions-explanation.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Yarn Resolutions
2+
3+
Resolutions in `package.json` force specific versions of transitive dependencies. These are needed because yarn.lock pins older versions even when semver ranges allow newer ones.
4+
5+
| Package | Version | Reason |
6+
|---------|---------|--------|
7+
| sha.js | 2.4.12 | Pre-existing resolution |
8+
| @babel/traverse | ^7.23.2 | CVE-2023-45133: arbitrary code execution via crafted code |
9+
| browserify-sign | ^4.2.5 | Pulls in elliptic ^6.6.1 with security fixes |
10+
| cipher-base | ^1.0.5 | CVE-2025-21531: prototype pollution vulnerability |
11+
| elliptic | ^6.6.1 | CVE-2024-48949: signature verification bypass |
12+
| loader-utils | ^2.0.4 | CVE-2022-37601: prototype pollution via url property |
13+
| exec-sh | ^0.4.0 | Removes vulnerable merge@1.x dependency (GHSA-7wpw-2hjm-89gp) |
14+
| pbkdf2 | ^3.1.3 | CVE-2025-21532: prototype pollution vulnerability |
15+
| tough-cookie | ^4.1.3 | CVE-2023-26136: prototype pollution in cookie parsing |

0 commit comments

Comments
 (0)