Skip to content

Commit 428aa5b

Browse files
mohandast52claude
andcommitted
chore(security): clear 3 audit advisories via yarn resolutions
Apply selective version resolutions for transitive deps where the bump is semver-compatible AND only one major exists in the tree. Skips multi-major cases (picomatch 2.x+4.x, minimatch 3.x+5.x+9.x+ 10.x, glob 7.x+11.x), axios (needs graph-cli upstream), and lodash (advisory affects all of 4.x, no fix without major migration). Resolutions added (root package.json): immutable: 5.1.4 -> ^5.1.5 (advisory 1117068) cross-spawn: 7.0.3 + 7.0.6 -> ^7.0.6 (advisory 1104664) semver: 7.3.5 + 7.7.x -> ^7.5.2 (advisory 1112921) Effect on root yarn.lock: dedups cross-spawn (-2 entries), bumps immutable (1 patch) and semver 7.3.5 (-> 7.7.4 via existing range). Net -50 lines in yarn.lock. Allowlist trimmed from 23 -> 20 entries. Audit script's drift detector flagged the now-cleared advisories as warnings before trim, then exited clean after. Verification: - Root: yarn install --frozen-lockfile clean; yarn audit:prod OK (20 allowlisted, no unlisted high/critical). - All 13 paths: yarn install --frozen-lockfile "Already up-to-date" (subgraph lockfiles untouched — root resolutions don't propagate). - Smoke test: predict-omen (19/19 tests pass), babydegen-optimism (10/10 tests pass) — same counts as PR2's verification. Out of scope (left in allowlist with 90-day review): - 5x axios advisories (need graph-cli upstream migration to axios 1.x) - 3x minimatch (multi-major in tree — risky to force one) - 3x undici, 1x picomatch, 1x lodash, 1x glob - Total: 20 remaining entries, all reviewed 2026-08-05 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c617be9 commit 428aa5b

3 files changed

Lines changed: 12 additions & 71 deletions

File tree

.supply-chain/audit-allowlist.json

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@
3737
"added": "2026-05-07",
3838
"review": "2026-08-05"
3939
},
40-
{
41-
"id": 1117068,
42-
"ghsa": "GHSA-wf6x-7x77-mvgw",
43-
"package": "immutable",
44-
"severity": "high",
45-
"reason": "Baselined at PR3 — transitive of @graphprotocol/graph-cli; latest stable graph-cli (0.98.1) does not refresh this advisory. Re-evaluate when graph-cli is bumped or a yarn resolution becomes feasible.",
46-
"added": "2026-05-07",
47-
"review": "2026-08-05"
48-
},
4940
{
5041
"id": 1115806,
5142
"ghsa": "GHSA-r5fr-rjxr-66jc",
@@ -181,15 +172,6 @@
181172
"added": "2026-05-07",
182173
"review": "2026-08-05"
183174
},
184-
{
185-
"id": 1112921,
186-
"ghsa": "GHSA-c2qf-rxjj-qqgw",
187-
"package": "semver",
188-
"severity": "high",
189-
"reason": "Baselined at PR3 — transitive of @graphprotocol/graph-cli; latest stable graph-cli (0.98.1) does not refresh this advisory. Re-evaluate when graph-cli is bumped or a yarn resolution becomes feasible.",
190-
"added": "2026-05-07",
191-
"review": "2026-08-05"
192-
},
193175
{
194176
"id": 1111034,
195177
"ghsa": "GHSA-jr5f-v2jv-69x6",
@@ -207,15 +189,6 @@
207189
"reason": "Baselined at PR3 — transitive of @graphprotocol/graph-cli; latest stable graph-cli (0.98.1) does not refresh this advisory. Re-evaluate when graph-cli is bumped or a yarn resolution becomes feasible.",
208190
"added": "2026-05-07",
209191
"review": "2026-08-05"
210-
},
211-
{
212-
"id": 1104664,
213-
"ghsa": "GHSA-3xgq-45jj-v275",
214-
"package": "cross-spawn",
215-
"severity": "high",
216-
"reason": "Baselined at PR3 — transitive of @graphprotocol/graph-cli; latest stable graph-cli (0.98.1) does not refresh this advisory. Re-evaluate when graph-cli is bumped or a yarn resolution becomes feasible.",
217-
"added": "2026-05-07",
218-
"review": "2026-08-05"
219192
}
220193
]
221194
}

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@
1515
},
1616
"devDependencies": {
1717
"matchstick-as": "0.6.0"
18+
},
19+
"resolutions": {
20+
"//": "Selective version resolutions to clear allowlisted advisories where the bump is semver-compatible AND the package has only one major version in the tree. Each entry must be paired with removal of the corresponding entry in .supply-chain/audit-allowlist.json. Do NOT add resolutions for packages with multiple majors in the tree (picomatch 2.x+4.x, minimatch 3.x+5.x+9.x+10.x, glob 7.x+11.x) — those would force one major across consumers expecting another and break installs.",
21+
"immutable": "^5.1.5",
22+
"cross-spawn": "^7.0.6",
23+
"semver": "^7.5.2"
1824
}
1925
}

yarn.lock

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -991,16 +991,7 @@ cosmiconfig@7.0.1:
991991
path-type "^4.0.0"
992992
yaml "^1.10.0"
993993

994-
cross-spawn@7.0.3:
995-
version "7.0.3"
996-
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
997-
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
998-
dependencies:
999-
path-key "^3.1.0"
1000-
shebang-command "^2.0.0"
1001-
which "^2.0.1"
1002-
1003-
cross-spawn@^7.0.3, cross-spawn@^7.0.6:
994+
cross-spawn@7.0.3, cross-spawn@^7.0.3, cross-spawn@^7.0.6:
1004995
version "7.0.6"
1005996
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz"
1006997
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
@@ -1656,10 +1647,10 @@ ignore@^5.2.0:
16561647
resolved "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz"
16571648
integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==
16581649

1659-
immutable@5.1.4:
1660-
version "5.1.4"
1661-
resolved "https://registry.yarnpkg.com/immutable/-/immutable-5.1.4.tgz#e3f8c1fe7b567d56cf26698f31918c241dae8c1f"
1662-
integrity sha512-p6u1bG3YSnINT5RQmx/yRZBpenIl30kVxkTLDyHLIMk0gict704Q9n+thfDI7lTRm9vXdDYutVzXhzcThxTnXA==
1650+
immutable@5.1.4, immutable@^5.1.5:
1651+
version "5.1.5"
1652+
resolved "https://registry.yarnpkg.com/immutable/-/immutable-5.1.5.tgz#93ee4db5c2a9ab42a4a783069f3c5d8847d40165"
1653+
integrity sha512-t7xcm2siw+hlUM68I+UEOK+z84RzmN59as9DZ7P1l0994DKUWV7UXBMQZVxaoMSRQ+PBZbHCOoBt7a2wxOMt+A==
16631654

16641655
import-fresh@^3.2.1:
16651656
version "3.3.0"
@@ -2146,13 +2137,6 @@ lru-cache@^11.0.0:
21462137
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-11.1.0.tgz"
21472138
integrity sha512-QIXZUBJUx+2zHUdQujWejBkcD9+cs94tLn0+YL8UrCh+D5sCXZ4c7LaEH48pNwRY3MLDgqUFyhlCyjJPf1WP0A==
21482139

2149-
lru-cache@^6.0.0:
2150-
version "6.0.0"
2151-
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz"
2152-
integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==
2153-
dependencies:
2154-
yallist "^4.0.0"
2155-
21562140
main-event@^1.0.1:
21572141
version "1.0.1"
21582142
resolved "https://registry.npmjs.org/main-event/-/main-event-1.0.1.tgz"
@@ -2613,24 +2597,7 @@ seek-bzip@^1.0.5:
26132597
dependencies:
26142598
commander "^2.8.1"
26152599

2616-
semver@7.3.5:
2617-
version "7.3.5"
2618-
resolved "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz"
2619-
integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==
2620-
dependencies:
2621-
lru-cache "^6.0.0"
2622-
2623-
semver@7.7.3:
2624-
version "7.7.3"
2625-
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.3.tgz#4b5f4143d007633a8dc671cd0a6ef9147b8bb946"
2626-
integrity sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==
2627-
2628-
semver@^7.6.3:
2629-
version "7.7.2"
2630-
resolved "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz"
2631-
integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==
2632-
2633-
semver@^7.7.3:
2600+
semver@7.3.5, semver@7.7.3, semver@^7.5.2, semver@^7.6.3, semver@^7.7.3:
26342601
version "7.7.4"
26352602
resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.4.tgz#28464e36060e991fa7a11d0279d2d3f3b57a7e8a"
26362603
integrity sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==
@@ -3078,11 +3045,6 @@ xtend@^4.0.0:
30783045
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
30793046
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
30803047

3081-
yallist@^4.0.0:
3082-
version "4.0.0"
3083-
resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz"
3084-
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
3085-
30863048
yaml@2.8.1:
30873049
version "2.8.1"
30883050
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.8.1.tgz#1870aa02b631f7e8328b93f8bc574fac5d6c4d79"

0 commit comments

Comments
 (0)