Skip to content

chore(deps): update dependency dompurify to v3.3.2 [security]#487

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-dompurify-vulnerability
Open

chore(deps): update dependency dompurify to v3.3.2 [security]#487
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/npm-dompurify-vulnerability

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Mar 3, 2025

This PR contains the following updates:

Package Change Age Confidence
dompurify 3.0.53.3.2 age confidence

DOMPurify allows Cross-site Scripting (XSS)

CVE-2025-26791 / GHSA-vhxf-7vqr-mrjg

More information

Details

DOMPurify before 3.2.4 has an incorrect template literal regular expression when SAFE_FOR_TEMPLATES is set to true, sometimes leading to mutation cross-site scripting (mXSS).

Severity

  • CVSS Score: 4.5 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


DOMPurify contains a Cross-site Scripting vulnerability

CVE-2025-15599 / GHSA-v8jm-5vwx-cfxm

More information

Details

DOMPurify 3.1.3 through 3.2.6 and 2.5.3 through 2.5.8 contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting missing textarea rawtext element validation in the SAFE_FOR_XML regex. Attackers can include closing rawtext tags like </textarea> in attribute values to break out of rawtext contexts and execute JavaScript when sanitized output is placed inside rawtext elements. The 3.x branch was fixed in 3.2.7; the 2.x branch was never patched.

Severity

  • CVSS Score: 5.1 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


DOMPurify contains a Cross-site Scripting vulnerability

CVE-2026-0540 / GHSA-v2wj-7wpq-c8vv

More information

Details

DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in 2.5.9 and 3.3.2, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.

Severity

  • CVSS Score: 5.1 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

cure53/DOMPurify (dompurify)

v3.3.2: DOMPurify 3.3.2

Compare Source

  • Fixed a possible bypass caused by jsdom's faulty raw-text tag parsing, thanks multiple reporters
  • Fixed a prototype pollution issue when working with custom elements, thanks @​christos-eth
  • Fixed a lenient config parsing in _isValidAttribute, thanks @​christos-eth
  • Bumped and removed several dependencies, thanks @​Rotzbua
  • Fixed the test suite after bumping dependencies, thanks @​Rotzbua

v3.3.1: DOMPurify 3.3.1

Compare Source

  • Updated ADD_FORBID_CONTENTS setting to extend default list, thanks @​MariusRumpf
  • Updated the ESM import syntax to be more correct, thanks @​binhpv

v3.3.0: DOMPurify 3.3.0

Compare Source

  • Added the SVG mask-type attribute to default allow-list, thanks @​prasadrajandran
  • Added support for ADD_ATTR and ADD_TAGS to accept functions, thanks @​nelstrom
  • Fixed an issue with the slot element being in both SVG and HTML allow-list, thanks @​Wim-Valgaeren

v3.2.7: DOMPurify 3.2.7

Compare Source

  • Added new attributes and elements to default allow-list, thanks @​elrion018
  • Added tagName parameter to custom element attributeNameCheck, thanks @​nelstrom
  • Added better check for animated href attributes, thanks @​llamakko
  • Updated and improved the bundled types, thanks @​ssi02014
  • Updated several tests to better align with new browser encoding behaviors
  • Improved the handling of potentially risky content inside CDATA elements, thanks @​securityMB & @​terjanq
  • Improved the regular expression for raw-text elements to cover textareas, thanks @​securityMB & @​terjanq

v3.2.6: DOMPurify 3.2.6

Compare Source

v3.2.5: DOMPurify 3.2.5

Compare Source

  • Added a check to the mXSS detection regex to be more strict, thanks @​masatokinugawa
  • Added ESM type imports in source, removes patch function, thanks @​donmccurdy
  • Added script to verify various TypeScript configurations, thanks @​reduckted
  • Added more modern browsers to the Karma launchers list
  • Added Node 23.x to tested runtimes, removed Node 17.x
  • Fixed the generation of source maps, thanks @​reduckted
  • Fixed an unexpected behavior with ALLOWED_URI_REGEXP using the 'g' flag, thanks @​hhk-png
  • Fixed a few typos in the README file

v3.2.4: DOMPurify 3.2.4

Compare Source

  • Fixed a conditional and config dependent mXSS-style bypass reported by @​nsysean
  • Added a new feature to allow specific hook removal, thanks @​davecardwell
  • Added purify.js and purify.min.js to exports, thanks @​Aetherinox
  • Added better logic in case no window object is president, thanks @​yehuya
  • Updated some dependencies called out by dependabot
  • Updated license files etc to show the correct year

v3.2.3: DOMPurify 3.2.3

Compare Source

v3.2.2: DOMPurify 3.2.2

Compare Source

  • Fixed a possible bypass in case a rather specific config for custom elements is set, thanks @​yaniv-git
  • Fixed several minor issues with the type definitions, thanks again @​reduckted
  • Fixed a minor issue with the types reference for trusted types, thanks @​reduckted
  • Fixed a minor problem with the template detection regex on some systems, thanks @​svdb99

v3.2.1: DOMPurify 3.2.1

Compare Source

v3.2.0: DOMPurify 3.2.0

Compare Source

v3.1.7: DOMPurify 3.1.7

Compare Source

  • Fixed an issue with comment detection and possible bypasses with specific config settings, thanks @​masatokinugawa
  • Fixed several smaller typos in documentation and test & build files, thanks @​christianhg
  • Added better support for Angular compiler, thanks @​jeroen1602
  • Added several new attributes to HTML and SVG allow-list, thanks @​Gigabyte5671 and @​Rotzbua
  • Removed the foreignObject element from the list of HTML entry-points, thanks @​masatokinugawa
  • Bumped several dependencies to be more up to date

v3.1.6: DOMPurify 3.1.6

Compare Source

  • Fixed an issue with the execution logic of attribute hooks to prevent bypasses, thanks @​kevin-mizu
  • Fixed an issue with element removal leading to uncaught errors through DOM Clobbering, thanks @​realansgar
  • Fixed a minor problem with the bower file pointing to the wrong dist path
  • Fixed several minor typos in docs, comments and comment blocks, thanks @​Rotzbua
  • Updated several development dependencies

v3.1.5: DOMPurify 3.1.5

Compare Source

  • Fixed a minor issue with the dist paths in bower.js, thanks @​HakumenNC
  • Fixed a minor issue with sanitizing HTML coming from copy&paste Word content, thanks @​kakao-bishop-cho

v3.1.4: DOMPurify 3.1.4

Compare Source

  • Fixed an issue with the recently implemented isNaN checks, thanks @​tulach
  • Added several new popover attributes to allow-list, thanks @​Gigabyte5671
  • Fixed the tests and adjusted the test runner to cover all branches

v3.1.3: DOMPurify 3.1.3

Compare Source

  • Fixed several mXSS variations found by and thanks to @​kevin-mizu & @​Ry0taK
  • Added better configurability for comment scrubbing default behavior
  • Added better hardening against Prototype Pollution attacks, thanks @​kevin-mizu
  • Added better handling and readability of the nodeType property, thanks @​ssi02014
  • Fixed some smaller issues in README and other documentation

v3.1.2: DOMPurify 3.1.2

Compare Source

  • Addressed and fixed a mXSS variation found by @​kevin-mizu
  • Addressed and fixed a mXSS variation found by Adam Kues of Assetnote
  • Updated tests for older Safari and Chrome versions

v3.1.1: DOMPurify 3.1.1

Compare Source

  • Fixed an mXSS sanitiser bypass reported by @​icesfont
  • Added new code to track element nesting depth
  • Added new code to enforce a maximum nesting depth of 255
  • Added coverage tests and necessary clobbering protections

Note that this is a security release and should be upgraded to immediately. Please also note that further releases may follow as the underlying vulnerability is apparently new and further variations may be discovered.

v3.1.0: DOMPurify 3.1.0

Compare Source

  • Added new setting SAFE_FOR_XML to enable better control over comment scrubbing
  • Updated README to warn about happy-dom not being safe for use with DOMPurify yet
  • Updated the LICENSE file to show the accurate year number
  • Updated several build and test dependencies

v3.0.11: DOMPurify 3.0.11

Compare Source

  • Fixed another conditional bypass caused by Processing Instructions, thanks @​Ry0taK
  • Fixed the regex for HTML Custom Element detection, thanks @​AlekseySolovey3T

v3.0.10: DOMPurify 3.0.10

Compare Source

  • Fixed two possible bypasses when sanitizing an XML document and later using it in HTML, thanks @​Slonser
  • Bumped up some build and test dependencies

v3.0.9: DOMPurify 3.0.9

Compare Source

  • Fixed a problem with proper detection of Custom Elements, thanks @​kevin-mizu
  • Refactored the hasOwnProperty logic, thanks @​ssi02014
  • Removed a superfluous console.warn making HappyDom happier, thanks @​HugoPoi
  • Modernized some of the demo hooks for better looks, thanks @​Steb95

v3.0.8: DOMPurify 3.0.8

Compare Source

  • Fixed errors caused by conditional exports, thanks @​ssi02014
  • Fixed a type error when working with custom element config, thanks @​cpmotion

v3.0.7: DOMPurify 3.0.7

Compare Source

  • Added better protection against CSPP attacks, thanks @​kevin-mizu
  • Updated browser versions for automated tests
  • Updated Node versions for automated tests
  • Refactored code base, thanks @​ssi02014
  • Refactored build system & deployment, thanks @​ssi02014

v3.0.6: DOMPurify 3.0.6

Compare Source

  • Refactored the core code-base and several utilities, thanks @​ssi02014
  • Updated and fixed several sections of the README, thanks @​ssi02014
  • Updated several outdated build and test dependencies

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Mar 3, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 3, 2025

⚠️ No Changeset found

Latest commit: df034f5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 3, 2025

Deploy Preview for tidbcloud-uikit failed. Why did it fail? →

Name Link
🔨 Latest commit fb96dfd
🔍 Latest deploy log https://app.netlify.com/sites/tidbcloud-uikit/deploys/67c5edd43bafde0008b243b7

@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from fb96dfd to 0e6b581 Compare April 8, 2025 12:03
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 8, 2025

Deploy Preview for tidbcloud-uikit-story ready!

Name Link
🔨 Latest commit df034f5
🔍 Latest deploy log https://app.netlify.com/projects/tidbcloud-uikit-story/deploys/69f263becc8c6000082e11a6
😎 Deploy Preview https://deploy-preview-487--tidbcloud-uikit-story.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from 0e6b581 to ade82cc Compare May 19, 2025 16:49
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from ade82cc to 5d12901 Compare September 25, 2025 15:51
@renovate renovate Bot changed the title fix(deps): update dependency dompurify to v3.2.4 [security] chore(deps): update dependency dompurify to v3.2.4 [security] Sep 25, 2025
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from 5d12901 to 358b118 Compare October 21, 2025 09:15
@ti-chi-bot ti-chi-bot Bot added the size/M label Oct 21, 2025
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from 358b118 to 88294c4 Compare November 10, 2025 18:31
@ti-chi-bot ti-chi-bot Bot added size/S and removed size/M labels Nov 10, 2025
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from 88294c4 to baecffa Compare December 31, 2025 15:55
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.2.4 [security] chore(deps): update dependency dompurify to v3.2.4 [security] - abandoned Jan 23, 2026
@renovate
Copy link
Copy Markdown
Author

renovate Bot commented Jan 23, 2026

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.2.4 [security] - abandoned chore(deps): update dependency dompurify to v3.2.4 [security] Jan 23, 2026
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from baecffa to 49216cd Compare March 5, 2026 17:25
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from 49216cd to 77b4c45 Compare March 13, 2026 10:42
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.2.4 [security] chore(deps): update dependency dompurify to v3.2.4 [security] - abandoned Mar 27, 2026
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.2.4 [security] - abandoned chore(deps): update dependency dompurify to v3.3.2 [security] Mar 27, 2026
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch 2 times, most recently from 4076773 to e1b73b2 Compare March 30, 2026 17:46
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.3.2 [security] chore(deps): update dependency dompurify to v3.2.4 [security] Mar 30, 2026
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from e1b73b2 to 341f2fb Compare April 14, 2026 03:15
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.2.4 [security] chore(deps): update dependency dompurify to v3.3.2 [security] Apr 14, 2026
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.3.2 [security] chore(deps): update dependency dompurify to v3.3.2 [security] - abandoned Apr 15, 2026
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from 341f2fb to bbfd946 Compare April 16, 2026 14:13
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.3.2 [security] - abandoned chore(deps): update dependency dompurify to v3.3.2 [security] Apr 16, 2026
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.3.2 [security] chore(deps): update dependency dompurify to v3.3.2 [security] - abandoned Apr 27, 2026
@renovate renovate Bot changed the title chore(deps): update dependency dompurify to v3.3.2 [security] - abandoned chore(deps): update dependency dompurify to v3.3.2 [security] Apr 29, 2026
@renovate renovate Bot force-pushed the renovate/npm-dompurify-vulnerability branch from bbfd946 to df034f5 Compare April 29, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants