Skip to content

Releases: cure53/DOMPurify

DOMPurify 3.3.0

13 Oct 16:02
36d1fbc

Choose a tag to compare

  • 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

DOMPurify 3.2.7

17 Sep 11:47
eaa0bdb

Choose a tag to compare

  • 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

DOMPurify 3.2.6

19 May 15:21
32f765e

Choose a tag to compare

DOMPurify 3.2.5

03 Apr 13:10
7806004

Choose a tag to compare

  • 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

DOMPurify 3.2.4

30 Jan 09:34
ec29e65

Choose a tag to compare

  • 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

DOMPurify 3.2.3

09 Dec 09:21
f1106aa

Choose a tag to compare

  • Fixed two conditional sanitizer bypasses discovered by @parrot409 and @Slonser
  • Updated the attribute clobbering checks to prevent future bypasses, thanks @parrot409

DOMPurify 2.5.8

09 Dec 09:04
ee992fc

Choose a tag to compare

  • Fixed two conditional sanitizer bypasses discovered by @parrot409 and @Slonser
  • Updated the attribute clobbering checks to prevent future bypasses, thanks @parrot409

DOMPurify 3.2.2

29 Nov 10:47
3990b7e

Choose a tag to compare

  • 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

DOMPurify 3.2.1

20 Nov 10:22
7f154b3

Choose a tag to compare

DOMPurify 3.2.0

11 Nov 15:09
f0d7507

Choose a tag to compare