Skip to content

fix(console): patch DOMPurify sanitization vulnerabilities - #14892

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/console-dompurify-security
Oct 23, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/console-dompurify-security

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

The Console image shipped by appwrite/helm-chart contains DOMPurify 3.4.16, which is affected by a critical SAFE_FOR_TEMPLATES bypass and a high-severity IN_PLACE sanitization bypass. Raise the existing Bun and pnpm overrides to ^3.4.17 and regenerate bun.lock so Monaco resolves the patched package.

Reports: helm-chart#6363 (GHSA-cg2g-xh64-v4q7) and helm-chart#6364 (GHSA-mrv2-3pqr-j5jr). The chart's nightly scan attributes both to docker.io/appwrite/new:1.2.97-self-hosted.

Validation:

  • bun install --frozen-lockfile passed; Monaco resolves installed dompurify 3.4.17.
  • All 677 Console unit tests passed; SDK pin check and git diff --check passed.
  • Trivy 0.74.0 with the 2026-10-23 DB, scanning installed package metadata using rootfs: 3.4.16 reports the two targeted advisories (and GHSA-c6gr-qvv4-5v3f); 3.4.17 reports no vulnerabilities.
  • bun run build:node stops before bundling because the installed pinned @appwrite.io/specs package lacks package.json. A fresh frozen install of unchanged origin/main reproduces the same missing package; no specs pin changed here.

This fixes the source dependency. To clear the image alerts, merge, publish a patched apps/console/ release, update the Helm chart's Console image to the published self-hosted tag, and rescan. Do not mark reports resolved until the scanned image is patched.

Continues appwrite-labs/infrastructure#896.

@luxor-code-review

luxor-code-review Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This PR updates the dompurify dependency override in the console package.json to 3.4.17 and regenerates bun.lock to match, keeping the manifest and lockfile consistent.

Files Change
apps/console/package.json, apps/console/bun.lock Bump the dompurify override pin from 3.4.16 to 3.4.17 and reconcile the lockfile with the new resolved version and integrity hashes.

Reviewed commit: f15c447

@appwrite

appwrite Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

New Console

Project ID: new-console

Sites (1)
Site Status Logs Preview QR
 New Console
new-console
Ready Ready View Logs Preview URL QR Code

Tip

Appwrite has crossed the 50K GitHub stars milestone with hundreds of active contributors

@ChiragAgg5k ChiragAgg5k self-assigned this Oct 23, 2026
@ghost

ghost commented Oct 23, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The Console's Bun and pnpm overrides now select DOMPurify 3.4.17, and the Bun lockfile records that patched release with matching integrity metadata. This updates the version resolved for Monaco's DOMPurify dependency.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 2
File Change
apps/console/package.json Raised the DOMPurify overrides for Bun and pnpm to ^3.4.17.
apps/console/bun.lock Updated the override and locked DOMPurify package version and integrity hash.

Reviewed f15c447 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit 5c51090 into main Oct 23, 2026
37 of 38 checks passed
Tapraj-Pathak pushed a commit to Tapraj-Pathak/appwrite that referenced this pull request Oct 24, 2026
…-security

fix(console): patch DOMPurify sanitization vulnerabilities

(cherry picked from commit 5c51090)
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