Resolve vulnerable on-headers transitively via workspace morgan override#2018
Draft
mikeharder with Copilot wants to merge 2 commits into
Draft
Resolve vulnerable on-headers transitively via workspace morgan override#2018mikeharder with Copilot wants to merge 2 commits into
on-headers transitively via workspace morgan override#2018mikeharder with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Update on-headers to version 1.1.0 to fix vulnerability
Resolve vulnerable Jun 24, 2026
on-headers transitively via workspace morgan override
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependabot flagged
on-headers@1.0.2inpnpm-lock.yaml(GHSA-76c9-3jph-rj3q/CVE-2025-7339). The vulnerable package was present transitively through the test server dependency graph and is now resolved to a non-vulnerable version.What changed
pnpm-workspace.yaml, which is the config location honored by the current pnpm workspace setup.morgan@1.10.1, which pulls inon-headers@1.1.0.pnpm-lock.yamlso the vulnerableon-headers@1.0.2resolution is removed.Why this shape
@microsoft.azure/autorest.testserverwas attempted first, but the published package metadata was not resolvable by pnpm in this workspace.morganwas the smallest working change that cleanly removed the vulnerable transitive resolution.Reachability Assessment
response.writeHead()when passed an array.packages/autorest.godevDependency@microsoft.azure/autorest.testserver->morgan->on-headers.writeHead(...)call sites were found, and no first-partymorganusage was found.Configuration snippet
Pre-existing unrelated failure
packages/autorest.gotestenvironment issue:goimports: not found.Original prompt