DOMPurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

OTHER License

Downloads
28.1M
Stars
12.8K
Committers
108

Bot releases are hidden (Show)

DOMPurify - DOMPurify 3.1.2 Latest Release

Published by cure53 6 months ago

  • 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
DOMPurify - DOMPurify 2.5.2

Published by cure53 6 months ago

  • 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
DOMPurify - DOMPurify 3.1.1

Published by cure53 6 months ago

  • 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.

DOMPurify - DOMPurify 2.5.1

Published by cure53 6 months ago

  • Fixed an mXSS sanitizer 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.

DOMPurify - DOMPurify 3.1.0

Published by cure53 6 months ago

  • 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
DOMPurify - DOMPurify 2.5.0

Published by cure53 6 months ago

  • Added new setting SAFE_FOR_XML to enable better control over comment scrubbing
  • Updated the LICENSE file to show the accurate year number
  • Updated several build and test dependencies
DOMPurify - DOMPurify 3.0.11

Published by cure53 7 months ago

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

Published by cure53 7 months ago

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

Published by cure53 7 months ago

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

Published by cure53 7 months ago

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

Published by cure53 7 months ago

  • Fixed two possible bypasses when sanitizing an XML document and later using it in HTML, thanks @Slonser
DOMPurify - DOMPurify 3.0.9

Published by cure53 8 months ago

  • 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
DOMPurify - DOMPurify 3.0.8

Published by cure53 10 months ago

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

Published by cure53 10 months ago

  • 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
DOMPurify - DOMPurify 3.0.6

Published by cure53 about 1 year ago

  • 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
DOMPurify - DOMPurify 3.0.5

Published by cure53 over 1 year ago

  • Fixed a licensing issue spotted and reported by @george-thomas-hill
  • Updated several build and test dependencies
DOMPurify - DOMPurify 2.4.7

Published by cure53 over 1 year ago

  • Fixed a licensing issue spotted and reported by @george-thomas-hill
DOMPurify - DOMPurify 3.0.4

Published by cure53 over 1 year ago

  • Fixed a bypass in jsdom 22 in case the noframes element is permitted, thanks @leeN
  • Fixed a typo with shadowrootmod which should be shadowrootmode, thanks @masatokinugawa
DOMPurify - DOMPurify 2.4.6

Published by cure53 over 1 year ago

  • Fixed a bypass in jsdom 22 in case the noframes element is permitted, thanks @leeN
DOMPurify - DOMPurify 3.0.3

Published by cure53 over 1 year ago

  • Added new TRUSTED_TYPES_POLICY configuration option, thanks @dejang
  • Added feDropShadow to the SVG filter allow-list, thanks @SelfMadeSystem