Skip to content

Override js-yaml to ^4.3.0 to fix npm audit failure#132

Merged
robzolkos merged 1 commit into
mainfrom
fix-npm-audit-js-yaml
Jul 24, 2026
Merged

Override js-yaml to ^4.3.0 to fix npm audit failure#132
robzolkos merged 1 commit into
mainfrom
fix-npm-audit-js-yaml

Conversation

@robzolkos

@robzolkos robzolkos commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

The npm Audit CI check is failing on every open PR because @redocly/openapi-core (a transitive dependency of openapi-typescript) pins js-yaml at 4.2.0, which is vulnerable to GHSA-52cp-r559-cp3m (high severity, quadratic CPU consumption via YAML merge-key chains).

Redocly's latest 1.x release still pins the vulnerable version, so this forces js-yaml to ^4.3.0 via npm overrides — the same approach already used for minimatch. The override can be dropped once Redocly picks up the fix.

Typecheck and the test suite (92 tests) pass with the override in place.


Summary by cubic

Force js-yaml to ^4.3.0 via npm overrides to fix CI npm audit failures caused by @redocly/openapi-core pinning js-yaml@4.2.0. Addresses GHSA-52cp-r559-cp3m (high severity); typecheck and tests pass.

  • Dependencies
    • Add overrides.js-yaml: ^4.3.0 in typescript/package.json.
    • Update lockfile to js-yaml@4.3.0.
    • Keep until @redocly/openapi-core upgrades.

Written for commit c9a881a. Summary will update on new commits.

Review in cubic

@redocly/openapi-core pins js-yaml 4.2.0, which is vulnerable to
GHSA-52cp-r559-cp3m (high). Force ^4.3.0 via npm overrides until
Redocly picks up the fix.
Copilot AI review requested due to automatic review settings July 24, 2026 16:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates dependency overrides in the TypeScript workspace to address package version constraints.

Changes:

  • Adds an override for js-yaml.
  • Adjusts the overrides JSON formatting (adds a trailing comma after minimatch).
Files not reviewed (1)
  • typescript/package-lock.json: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@robzolkos robzolkos closed this Jul 24, 2026
@robzolkos robzolkos reopened this Jul 24, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 2 files

Re-trigger cubic

@robzolkos
robzolkos merged commit fd6c845 into main Jul 24, 2026
53 of 55 checks passed
@robzolkos
robzolkos deleted the fix-npm-audit-js-yaml branch July 24, 2026 16:30
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.

2 participants