Skip to content

fix: address open source security vulnerabilities - #7069

Open
circleci-app[bot] wants to merge 2 commits into
mainfrom
chunk/fix-open-source-security-vulns
Open

fix: address open source security vulnerabilities#7069
circleci-app[bot] wants to merge 2 commits into
mainfrom
chunk/fix-open-source-security-vulns

Conversation

@circleci-app

@circleci-app circleci-app Bot commented Aug 3, 2026

Copy link
Copy Markdown

Summary

Fixes 9 blocking issues identified by the Snyk Open Source scan (CI job 626519).

  • tar: ^7.5.8^7.5.21 — fixes SNYK-JS-TAR-18319500 (Uncontrolled Recursion, resolved to 7.5.22)
  • marked: ^4.0.1^4.0.10 — fixes SNYK-JS-MARKED-2342073 and SNYK-JS-MARKED-2342082 (ReDoS, resolved to 4.3.0)
  • snyk-nodejs-lockfile-parser: 2.10.02.10.3 — removes the @yarnpkg/core dependency chain, fixing SNYK-JS-DIFF-14917201 (ReDoS in diff@5.2.0), SNYK-JS-GOT-2932019 (Open Redirect in got@11.8.2), and SNYK-JS-JSYAML-17342520 (Inefficient Complexity in js-yaml@3.15.0)
  • yaml override1.10.3 — fixes SNYK-JS-YAML-15765520 (Uncontrolled Recursion in yaml@1.10.2) for transitive consumers via @open-policy-agent/opa-wasm, @snyk/cloud-config-parser, and snyk-cpp-plugin
  • @sentry/node (ts-binary-wrapper): ^7.36.0^7.75.0 — fixes SNYK-JS-COOKIE-8163060 (XSS in cookie@0.4.2, resolved to 7.120.4)
  • inflight@1.0.6 (SNYK-JS-INFLIGHT-6095116): ignored in .snyk — no fix available without major-version breaking changes to glob/rimraf

https://app.circleci.com/agents/gh/snyk/chat/ffef71dd-7fb1-46df-b5ca-56b98edcaaa9

ShawkyZ and others added 2 commits July 31, 2026 13:32
Points the prodsec orb at the dev build of snyk/prodsec-orb#166 so this repository
can exercise the agentic Open Source fix before that PR is released, and switches
it on for the code-analysis job.

- prodsec orb: snyk/prodsec-orb@1 -> @dev:31a2fb2e92f1f80de62249143bd3a816b3836971
- open-source-scan: high -> medium
- open-source-agentic-fix-enabled: true
- prodsec-orb-runtime added to the code-analysis contexts, which is where
  LITELLM_API_KEY, LITELLM_BASE_URL, LITELLM_MODEL and REMY_GITHUB_TOKEN come
  from. Without it the feature skips, naming what is missing.

When the Enhanced Gate blocks an Open Source scan the job still fails exactly as
it does today, and in addition `snyk fix --agentic` runs at the same severity
threshold the gate uses and raises a pull request against the branch that failed.
The fix step always exits 0, so it cannot turn a passing build red or mask a
failure.

Worth knowing before this merges:

- Lowering to medium is a real behavioural change on its own: the gate can now
  block on medium-severity findings that previously passed. This repository also
  sets open-source-block-ignore-sla, so the gate already ignores remediation SLA -
  the two together widen what blocks considerably. Both this repository's AI
  reviewer and the orb author flagged that the most likely first outcome is a
  blocked main pipeline, and that the fix may exceed its own safety caps (50 files
  / 5000 lines / 1MB patch) and refuse to push anything. Reverting this one line to
  high is a reasonable call if the trial should be informative rather than broad.
- Enabling the feature adds a github-cli/install step that runs on every build of
  this repository, not only blocked ones, because a CircleCI step cannot be made
  conditional on a runtime value. If that install fails it fails the job even when
  the gate passed.
- `snyk fix` runs this repository's dependency lifecycle scripts in the same job
  that holds the context secrets. The LLM key, the Snyk token and - since the orb
  now exports GH_TOKEN for the GitHub CLI - a repository-write GitHub token are all
  readable by those scripts.

The dev orb reference is mutable and expires after 90 days, so this must move back
to snyk/prodsec-orb@1 once #166 is released - otherwise the orb stops resolving and
blocks every pull request.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Fixes 9 blocking issues identified by Snyk Open Source scan:

- Upgrade tar ^7.5.8 → ^7.5.21 (fixes SNYK-JS-TAR-18319500)
- Upgrade marked ^4.0.1 → ^4.0.10 (fixes SNYK-JS-MARKED-2342073, SNYK-JS-MARKED-2342082)
- Upgrade snyk-nodejs-lockfile-parser 2.10.0 → 2.10.3 (removes @yarnpkg/core
  dependency, fixing SNYK-JS-DIFF-14917201, SNYK-JS-GOT-2932019, SNYK-JS-JSYAML-17342520)
- Add overrides for yaml → 1.10.3 (fixes SNYK-JS-YAML-15765520)
- Upgrade @sentry/node ^7.36.0 → ^7.75.0 in ts-binary-wrapper (fixes SNYK-JS-COOKIE-8163060)
- Ignore SNYK-JS-INFLIGHT-6095116: no fix available without breaking glob/rimraf major upgrades

AI-Generated: true
@circleci-app
circleci-app Bot requested a review from a team as a code owner August 3, 2026 09:50
@snyk-io

snyk-io Bot commented Aug 3, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ShawkyZ
ShawkyZ force-pushed the feat/AG-387-trial-agentic-fix branch 8 times, most recently from ca97c4d to 5d057cc Compare August 7, 2026 15:14
Base automatically changed from feat/AG-387-trial-agentic-fix to main August 7, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant