Skip to content

fix(deps): pin js-yaml past GHSA-5p4m-2wfm-xmqj - #569

Merged
JArmandoAnaya merged 1 commit into
mainfrom
fix/js-yaml-4.3.1
Aug 13, 2026
Merged

fix(deps): pin js-yaml past GHSA-5p4m-2wfm-xmqj#569
JArmandoAnaya merged 1 commit into
mainfrom
fix/js-yaml-4.3.1

Conversation

@JArmandoAnaya

Copy link
Copy Markdown
Contributor

osv-scanner flags one vulnerability in this repo:

| https://osv.dev/GHSA-5p4m-2wfm-xmqj | 7.5 | npm | js-yaml | 4.3.0 | 4.3.1 | pnpm-lock.yaml |

Why an override and not an update

js-yaml is transitive: openapi-typescript@7.13.0@redocly/openapi-core@1.34.18js-yaml. That last edge is an exact pin ("js-yaml": "4.3.0", not a range), so pnpm update -r --depth Infinity js-yaml resolves to the same version and leaves the lockfile byte-identical — verified before reaching for anything heavier. A pnpm.overrides entry is the only lever.

The override is version-scoped (js-yaml@4.3.04.3.1) rather than a bare js-yaml key, so it expires on its own: the day @redocly widens or bumps its pin, the entry stops matching and nothing is quietly held back at 4.3.1.

docs-site/pnpm-lock.yaml already resolves 4.3.1 (its dependent declares a range) and is untouched.

Verification

  • osv-scanner scan --lockfile pnpm-lock.yamlNo issues found (was 1 high).
  • pnpm generate:client:check → both generated files match openapi.json. This is the check that matters: openapi-typescript is the only consumer of the upgraded parser, and its output is a committed artifact.
  • pnpm test:scripts → 81 passed, 1 skipped, 0 failed.

Scope

Two files, no source change, no UI surface, no new dependency.

Closes the Dependabot alert at security/dependabot/7.

osv-scanner reported js-yaml 4.3.0 (GHSA-5p4m-2wfm-xmqj, CVSS 7.5) in the
root lockfile. It arrives through openapi-typescript ->
@redocly/openapi-core, which depends on js-yaml at an *exact* 4.3.0, so no
`pnpm update` can move it -- a version-scoped override is the only lever.

Scoped to `js-yaml@4.3.0` rather than a bare `js-yaml` override so it
expires on its own: once @Redocly widens its pin, the entry stops matching
and nothing is silently held back. docs-site's lockfile already resolves
4.3.1 and is untouched.

`pnpm generate:client:check` is byte-identical, so the one consumer of the
upgraded parser produces the same output.
@JArmandoAnaya
JArmandoAnaya merged commit a7e53c9 into main Aug 13, 2026
15 checks passed
@JArmandoAnaya
JArmandoAnaya deleted the fix/js-yaml-4.3.1 branch August 13, 2026 03:21
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