fix(deps): clear 4 osv-scanner advisories (brace-expansion, bedrock-agentcore) - #658
Merged
Merged
Conversation
…gentcore) The `security:deps` gate has been failing on `main` since the 2026-07-06 scheduled run, on advisories published against already-resolved dependencies rather than anything a PR changed. It fails every open PR as a side effect. - **brace-expansion (GHSA-mh99-v99m-4gvg, 7.5)** — a DoS via unbounded expansion. Three ranges (`^1.1.7`, `^2.0.2`, `^5.0.5`) resolved to 1.1.16 / 2.1.2 / 5.0.7, and the advisory covers everything `<= 5.0.7` — so the v1 and v2 lines have no patched release within their own majors. A plain re-resolve therefore can't fix them; a `resolutions` entry is the only route, and it collapses all three ranges onto the patched 5.0.8. The package is transitive-only (via `minimatch` 3.x/9.x/10.x), so nothing declares it directly. - **bedrock-agentcore (GHSA-j6g5-3hh3-pgw8, 8.4)** — improper neutralization of argument delimiters in `install_packages()`. Exact-pinned, so this is a deliberate 1.17.0 → 1.18.1 bump (1.18.1 is both the first patched version and the current latest). Verified `osv-scanner` now reports "No issues found" across all three lockfiles. Full `mise run build` green (cdk 2526, cli, agent 1298). The bumped SDK's one runtime touchpoint — `BedrockAgentCoreContext.set_workload_access_token`, used by the workload-token bridge in `agent/src/server.py` — was checked to still exist in 1.18.1, since the agent tests mock that import. Lockfile + pin only; no source changes.
krokoko
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
security:depsjob has been failing onmainitself since the 2026-07-06 scheduled run (also 07-13, 07-20), on advisories published against already-resolved dependencies rather than anything a PR changed. Because the gate runs per-PR, it currently fails every open PR as a side effect — e.g. #653, which touches no lockfile or manifest at all.Fix
brace-expansion(GHSA-mh99-v99m-4gvg, 7.5) — DoS via unbounded expansion length causing an OOM crash. Three ranges were in the tree (^1.1.7,^2.0.2,^5.0.5, viaminimatch3.x / 9.x / 10.x), resolving to 1.1.16 / 2.1.2 / 5.0.7.The advisory covers everything
<= 5.0.7, so the v1 and v2 lines have no patched release inside their own majors — a plain lockfile re-resolve cannot fix them, which is why this needs aresolutionsentry rather than the usual re-resolve-only change."brace-expansion": "^5.0.8"collapses all three ranges onto the patched version. The package is transitive-only; nothing declares it directly.bedrock-agentcore(GHSA-j6g5-3hh3-pgw8, 8.4) — improper neutralization of argument delimiters in the Python SDK'sinstall_packages(). This one is exact-pinned inagent/pyproject.toml, so it is a deliberate 1.17.0 → 1.18.1 bump (1.18.1 is both the first patched version and the current latest).Verification
osv-scanneracross all three lockfiles:No issues found(was 4 High).mise run buildgreen — cdk 2526 tests / cli / agent 1298.BedrockAgentCoreContext.set_workload_access_token, used by the workload-token bridge inagent/src/server.py— was checked to still exist in 1.18.1. Worth calling out because the agent tests mock that import, so the suite passing alone would not have proven it.Lockfile + pin only; no source changes.
Follows the same shape as #637 and #639.