Skip to content

chore(deps): pin dompurify and protobufjs to patch Vanta CVEs#1090

Merged
sdserranog merged 1 commit into
mainfrom
luanda
Jul 21, 2026
Merged

chore(deps): pin dompurify and protobufjs to patch Vanta CVEs#1090
sdserranog merged 1 commit into
mainfrom
luanda

Conversation

@sdserranog

@sdserranog sdserranog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Remediates the four Vanta/Dependabot advisories (all MEDIUM) by adding pnpm overrides in pnpm-workspace.yaml that force the transitive dompurify (>=3.4.7 <4, pulled by mermaid/posthog-js/swagger-ui-react) and protobufjs (>=7.6.3 <8, pulled by @opentelemetry/otlp-transformer) past the vulnerable versions, resolving to dompurify@3.4.12 and protobufjs@7.6.5. This clears CVE-2026-49459, CVE-2026-49458, and GHSA-76mc-f452-cxcm (dompurify) plus CVE-2026-54269 (protobufjs). Both ranges are capped below the next major so the bump stays within each consumer's declared semver and doesn't pull a breaking major. pnpm-lock.yaml was regenerated and the full test suite passes (767/767).


Note

Low Risk
Lockfile-only dependency pinning with semver caps below the next major; no runtime code changes.

Overview
Adds pnpm workspace overrides for transitive dompurify (>=3.4.7 <4) and protobufjs (>=7.6.3 <8), following the same pattern as existing security pins in pnpm-workspace.yaml. The lockfile is updated so installs resolve to dompurify@3.4.12 (replacing 3.4.1) and protobufjs@7.6.5 (replacing 7.6.2), including consumers such as mermaid, posthog-js, swagger-ui-react, and @opentelemetry/otlp-transformer.

The protobufjs bump also drops @protobufjs/inquire from the resolved tree and bumps @protobufjs/utf8 to 1.1.2. No application source changes—dependency resolution only.

Reviewed by Cursor Bugbot for commit 803e1b5. Bugbot is set up for automated code reviews on this repo. Configure here.

Add pnpm overrides forcing transitive dompurify (>=3.4.7 <4, via mermaid/
posthog-js/swagger-ui-react) and protobufjs (>=7.6.3 <8, via
@opentelemetry/otlp-transformer) past their flagged advisories.

Resolves CVE-2026-49459, CVE-2026-49458, GHSA-76mc-f452-cxcm (dompurify)
and CVE-2026-54269 (protobufjs). Ranges capped below the next major to
stay within consumers' declared semver.
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jul 21, 2026 6:51pm

Request Review

@sdserranog
sdserranog merged commit b827bab into main Jul 21, 2026
7 checks passed
@sdserranog
sdserranog deleted the luanda branch July 21, 2026 19:34
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