This repository was archived by the owner on Jun 26, 2026. It is now read-only.
fix(root): resolve undici and ts-deepmerge vulnerabilities (fixes DOC-364) - #1135
Merged
Merged
Conversation
…ies fixes DOC-364 - undici: update pnpm override from ^6.24.0 to ^6.27.0 (Strategy B) Advisory: GHSA-vxpw-j846-p89q Fixes WebSocket client DoS via fragment count bypass; also resolves related undici cookie/header injection and keep-alive advisories. - ts-deepmerge: add pnpm override to ^8.0.0 (Strategy B) Advisory: GHSA-87mf-gv2c-c62c Fixes prototype method override DoS in transitive @scalar dependency. Co-authored-by: Dima Grossman <dima@grossman.io>
✅ Deploy Preview for docs-novu ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
scopsy
approved these changes
Jun 24, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Weekly dependency security audit — resolves 2 of 3 actionable vulnerability packages (5 advisory IDs total).
Fixed
undici^6.24.0→^6.27.0)ts-deepmerge^8.0.0)Skipped
js-yaml(moderate, GHSA-h67p-54hq-rp68) — upgrading to>=4.2.0breaksgray-matterwhich calls the removedyaml.safeLoadAPI. No compatible parent update is available.Validation
pnpm audit— undici and ts-deepmerge advisories cleared (1 moderate js-yaml remains)pnpm build— passesLinear: DOC-364
Greptile Summary
This PR patches two transitive dependency vulnerabilities via pnpm overrides:
undiciis bumped from 6.25.0 to 6.27.0 (high-severity GHSA-vxpw-j846-p89q) andts-deepmergeis pinned to 8.0.0 (moderate GHSA-87mf-gv2c-c62c). A third advisory (js-yaml) is intentionally skipped due to a breaking API removal ingray-matter.undici@<6.27.0: ^6.27.0— minor version bump within the same major; all lockfile snapshots updated consistently.ts-deepmerge@<8.0.0: ^8.0.0— major version bump (7 → 8) used transitively via@scalar/openapi-parser; the PR reportspnpm buildpasses, and the usage is build-time only in a docs repo, so runtime risk is minimal.pnpm-lock.yamlis fully in sync withpackage.jsonoverrides, and all affected snapshot entries are updated.Confidence Score: 5/5
Safe to merge — both overrides are scoped precisely and the lockfile is fully consistent with the manifest changes.
The changes are two targeted pnpm override additions: a minor-patch bump for undici and a major-version pin for ts-deepmerge. The major bump (7 → 8) is the only slightly elevated risk, but ts-deepmerge is consumed only by @scalar/openapi-parser at build time in a docs repo, and the PR confirms the build passes. No logic, runtime, or interface code was touched.
No files require special attention.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[pnpm install] --> B{Override rules applied} B --> C["ts-deepmerge@<8.0.0\n→ ^8.0.0 (8.0.0)"] B --> D["undici@<6.27.0\n→ ^6.27.0 (6.27.0)"] C --> E["@scalar/openapi-parser\nuses ts-deepmerge@8.0.0"] D --> F["remark-lint-no-dead-urls\nuses undici@6.27.0"] E --> G[pnpm build ✓] F --> G G --> H[GHSA-87mf-gv2c-c62c resolved] G --> I[GHSA-vxpw-j846-p89q resolved]%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD A[pnpm install] --> B{Override rules applied} B --> C["ts-deepmerge@<8.0.0\n→ ^8.0.0 (8.0.0)"] B --> D["undici@<6.27.0\n→ ^6.27.0 (6.27.0)"] C --> E["@scalar/openapi-parser\nuses ts-deepmerge@8.0.0"] D --> F["remark-lint-no-dead-urls\nuses undici@6.27.0"] E --> G[pnpm build ✓] F --> G G --> H[GHSA-87mf-gv2c-c62c resolved] G --> I[GHSA-vxpw-j846-p89q resolved]Reviews (1): Last reviewed commit: "fix(root): resolve high undici and moder..." | Re-trigger Greptile