Skip to content

fix(sdk): clear new dependency advisories in the SDK audit - #2132

Merged
rdimitrov merged 1 commit into
mainfrom
fix/sdk-audit-advisories
Oct 6, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
fix/sdk-audit-advisories

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

task sdk:audit started failing on two newly published advisories in the SDK's transitive dev tooling. Every PR that touches sdk/typescript/ currently fails the TypeScript SDK (Node 22.x / 24.x) checks (for example #2105).

Advisory Severity Path Fix here
GHSA-68fv-2mgg-jv7q source-map-js <1.2.2 high vitest > vite > postcss pnpm override to ^1.2.2
GHSA-hp3w-g68c-fv3c sprintf-js <=1.1.3 moderate @microsoft/api-extractor > argparse Ignored in auditConfig.ignoreGhsas: no patched release exists

Decision for reviewers: the sprintf-js ignore is a deliberate security exception. It is build-time only (API report generation), never part of the published SDK. The comment in pnpm-workspace.yaml says to remove the entry once a fixed version ships. If you'd rather not ignore it, the alternative is accepting a red audit until upstream publishes a fix.

sdk_typescript_scenario11_test.go asserts only the allowBuilds / onlyBuiltDependencies keys of this file, so the new keys don't affect it.

Not covered: other pnpm workspaces

CI doesn't audit them, so they don't block PRs, but pnpm audit reports:

  • sdk/typescript/examples/slack-bot: proxy-addr (critical), undici (high/moderate/low), source-map-js (high)
  • apps/ (Studio): js-yaml (high), source-map-js (high)

Worth a follow-up from their owners.

Test plan

  • task sdk:audit: exit 0 (1 moderate ignored)
  • task sdk:lint, task sdk:typecheck, task sdk:test (362 passed)
  • go test ./internal/adapter/server/ -run Scenario11

User-facing change

None. Dev dependencies only.

🤖 Generated with Claude Code

task sdk:audit started failing on two newly published advisories in
transitive dev tooling, failing every PR that touches the SDK:

- source-map-js <1.2.2 (high, GHSA-68fv-2mgg-jv7q), via vitest > vite >
  postcss. Override to ^1.2.2.
- sprintf-js <=1.1.3 (moderate, GHSA-hp3w-g68c-fv3c), via
  @microsoft/api-extractor > argparse. No patched release exists and the
  package runs only at build time, never in the shipped SDK, so ignore it
  in auditConfig with a note to remove the entry once a fix ships.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov merged commit 3c8366f into main Oct 6, 2026
35 checks passed
@rdimitrov
rdimitrov deleted the fix/sdk-audit-advisories branch October 6, 2026 08:37
This was referenced Oct 7, 2026
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