Skip to content

[GHSA-2q42-4q24-7rgv] OpenAPI3 version value escapes emitterOutputDir and overwrites YAML/JSON outside the output tree - #11432

Open
geemus wants to merge 1 commit into
geemus/advisory-improvement-11432from
geemus-GHSA-2q42-4q24-7rgv
Open

geemus wants to merge 1 commit into
geemus/advisory-improvement-11432from
geemus-GHSA-2q42-4q24-7rgv

Conversation

@geemus

@geemus geemus commented Nov 19, 2026

Copy link
Copy Markdown

Updates

  • Affected products

Comments
From my claude session (I checked and it appears to be accurate).

Both packages were fixed in 1.16.0, released to npm on 2026-09-09, but the
advisory still lists no patched version, so Dependabot reports "no fix
available" and doesn't open security updates.

  • The fix is Prevent spec provided names from escaping the emitter output dir microsoft/typespec#11777, "Prevent spec provided names from
    escaping the emitter output dir", merged 2026-08-28 as e0f67bdf. The
    advisory already lists both as references.
  • That commit is included in the typespec-stable@1.16.0 release tag.
  • The 1.16.0 changelogs for @typespec/compiler and @typespec/openapi3
    list #11777: a new sanitizePathSegment helper, and sanitization of the
    spec-provided {version}, {service-name} and {service-name-if-multiple}
    values interpolated into output-file.
  • The published 1.16.0 npm tarballs of both packages contain
    sanitizePathSegment in their built output.

Release: https://github.com/microsoft/typespec/releases/tag/typespec-stable%401.16.0

Copilot AI adaptive review requested due to automatic review settings November 19, 2026 20:06
@github-actions
github-actions Bot changed the base branch from main to geemus/advisory-improvement-11432 November 19, 2026 20:07

Copilot AI 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.

🟡 Changes recommended

Both OSV fixed entries use a range expression instead of 1.16.0, potentially preventing patched-release detection, and the patched-release URL is missing from references.

1 open issue
What changed in this PR

Updates the TypeSpec security advisory to identify 1.16.0 as the patched release for @typespec/openapi3 and @typespec/compiler, aiming to enable consumers such as Dependabot to recognize available fixes.

Changes:

  • Replaces last-affected events with fixed-version events for both packages.
  • Preserves <= 1.15.0 as the last-known affected range.
  • Updates the advisory’s modification timestamp.
File Description
advisories/​github-reviewed/​2026/​09/​GHSA-2q42-4q24-7rgv/​GHSA-2q42-4q24-7rgv.json Updates patched-release and affected-range metadata for both TypeSpec packages.

Review effort: Balanced (adaptive)

},
{
"last_affected": "1.15.0"
"fixed": ">= 1.16.0"
@geemus

geemus commented Nov 19, 2026

Copy link
Copy Markdown
Author

Oops, my apologies. Looks like this fixed (and maybe the other one) should be just 1.16.0 instead of the >= designation I used. Unfortunately, it doesn't look like I have permission to change this, unless I'm just doing something wrong.

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