Skip to content

ci: scope braces audit exception until patched - #2529

Closed
aidandaly24 wants to merge 2 commits into
aws:refactorfrom
aidandaly24:fix/ci-braces-audit
Closed

aidandaly24 wants to merge 2 commits into
aws:refactorfrom
aidandaly24:fix/ci-braces-audit

Conversation

@aidandaly24

@aidandaly24 aidandaly24 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

Linux verification currently fails bun audit on high-severity GHSA-vfj7-8cjw-p6xm in transitive [email protected]. There is no published patched version (bun audit fix --dry-run: no published version fixes), so update the verification command to ignore only this advisory. All other audit findings remain CI failures.

Security limitation: This is a temporary risk exception, NOT a vulnerability fix. Maintainer review is needed before merging. When a patched version ships, update the lockfile and remove the exception. This affects the refactor base branch and currently blocks unrelated PRs, including #2521.

Related Issue

Related: #2528 (closed at the author’s request; the vulnerability remains unresolved).

Documentation PR

Not applicable; the exception and removal condition are documented alongside the workflow step.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other: temporary, single-advisory CI exception pending upstream patch

Testing

  • Before: bun audit fails on GHSA-vfj7-8cjw-p6xm.

  • After: bun audit --ignore GHSA-vfj7-8cjw-p6xm passes, reporting 784 packages checked and 1 advisory ignored.

  • bun audit fix --dry-run reports no published version fixes.

  • bun run format:check and git diff --check pass.

  • This changes only the CI workflow; full unit/typecheck/lint/build verification is left to PR CI. AWS E2E is not applicable.

  • I ran bun test

  • I ran the relevant end-to-end tests with bun run test:e2e, or explained why they are not applicable

  • I ran bun run typecheck

  • I ran bun run lint:check

  • I ran bun run format:check

  • I ran bun run build

  • If I modified src/assets/, I updated affected snapshots with bun test <test-file> --update-snapshots and committed them

src/assets/ was not modified.

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works (the exact CI command was verified locally)
  • I have updated the documentation accordingly (workflow comment)
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings (the known advisory is explicitly excluded)
  • Any dependent changes have been merged and published (upstream patched release is not available)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions github-actions Bot added size/xs PR size: XS and removed size/xs PR size: XS labels Oct 5, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added agentcore-harness-reviewing AgentCore Harness review in progress claude-security-reviewing Claude Code /security-review in progress labels Oct 5, 2026
@github-actions github-actions Bot added size/xs PR size: XS and removed size/xs PR size: XS labels Oct 5, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Oct 5, 2026

@agentcore-devx-automation agentcore-devx-automation Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AgentCore Harness Review

Verdict: Looks good

Small, focused CI change. I verified:

  • GHSA-vfj7-8cjw-p6xm is the correct advisory for the braces stack-exhaustion DoS, and its first_patched_version is still null — so the "no patched release" comment is accurate.
  • bun audit --ignore <GHSA-ID> is the documented syntax, and ignoring by GHSA ID (not CVE) is correct.
  • The ignore is narrowly scoped to this one advisory, so other/new findings will still fail CI.
  • [email protected] is only pulled in transitively via fast-glob (through @aws-cdk/*) and dev-only secretlint/globby; the DoS requires attacker-controlled deeply-nested brace patterns, which isn't a realistic vector for this CLI.

No code changes needed. Just make sure someone keeps an eye on upstream braces so the ignore gets removed once a patched release ships — the comment is the only tracker right now.

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Oct 5, 2026
@aidandaly24

Copy link
Copy Markdown
Contributor Author

Closing this draft: excluding GHSA-vfj7-8cjw-p6xm from bun audit would only suppress the finding, not remediate the braces vulnerability. We should revisit when a patched dependency or another actual fix is available.

@aidandaly24 aidandaly24 closed this Oct 5, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.40%. Comparing base (f0943aa) to head (6355fb4).
⚠️ Report is 1 commits behind head on refactor.

Additional details and impacted files
@@            Coverage Diff            @@
##           refactor    #2529   +/-   ##
=========================================
  Coverage     97.40%   97.40%           
=========================================
  Files           642      642           
  Lines         46865    46865           
=========================================
  Hits          45647    45647           
  Misses         1218     1218           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Thanks for the report, @codecov-commenter — feedback like this is exactly
how we catch the things we missed. Because this PR is already
closed, the team won't see follow-up comments here.

Would you mind opening a new issue so we can track it properly?
https://github.com/aws/agentcore-cli/issues/new/choose

If this is a security issue, please report it privately via
https://aws.amazon.com/security/vulnerability-reporting/ instead
of a public issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants