All Versions
102
Latest Version
Avg Release Cycle
38 days
Latest Release
1333 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.7.3 Changes
October 24, 2022- ๐ If allowedTags is falsy but not exactly
false, then do not assume that all tags are allowed. Rather, allow no tags in this case, to be on the safe side. This matches the existing documentation and fixes issue #176. Thanks to Kedar Chandrayan for the fix.
- ๐ If allowedTags is falsy but not exactly
-
v2.7.2 Changes
September 15, 2022- ๐ Closing tags must agree with opening tags. This fixes issue #549, in which closing tags not associated with any permitted opening tag could be passed through. No known exploit exists, but it's better not to permit this. Thanks to Kedar Chandrayan for the report and the fix.
-
v2.7.1 Changes
July 20, 2022- ๐ Protocol-relative URLs are properly supported for script tags. Thanks to paweljq.
- ๐ A denial-of-service vulnerability has been fixed by replacing global regular expression replacement logic for comment removal with a new implementation. Thanks to Nariyoshi Chida of NTT Security Japan for pointing out the issue.
-
v2.7.0 Changes
February 04, 2022- ๐ Allows a more sensible set of default attributes on
<img />tags. Thanks to Zade Viggers.
- ๐ Allows a more sensible set of default attributes on
-
v2.6.1 Changes
December 08, 2021- ๐ Fixes style filtering to retain
!importantwhen used. - ๐ Fixed trailing text bug on
transformTagsoptions that was reported on issue #506. Thanks to Alex Rantos.
- ๐ Fixes style filtering to retain
-
v2.6.0 Changes
November 23, 2021- ๐ Support for regular expressions in the
allowedClassesoption. Thanks to Alex Rantos.
- ๐ Support for regular expressions in the
-
v2.5.3 Changes
November 02, 2021- ๐ Fixed bug introduced by klona 2.0.5, by removing klona entirely.
-
v2.5.2 Changes
October 13, 2021- Nullish HTML input now returns an empty string. Nullish value may be explicit
null,undefinedor implicitundefinedwhen value is not provided. Thanks to Artem Kostiuk for the contribution. - Documented that all text content is escaped. Thanks to Siddharth Singh.
- Nullish HTML input now returns an empty string. Nullish value may be explicit
-
v2.5.1 Changes
September 14, 2021- ๐ The
allowedScriptHostnamesandallowedScriptDomainsoptions now implicitly purge the inline content of all script tags, not just those withsrcattributes. This behavior was already strongly implied by the fact that they purged it in the case where asrcattribute was actually present, and is necessary for the feature to provide any real security. Thanks to Grigorii Duca for pointing out the issue.
- ๐ The
-
v2.5.0 Changes
September 08, 2021- ๐ New
allowedScriptHostnamesoption, it enables you to specify which hostnames are allowed in a script tag. - ๐ New
allowedScriptDomainsoption, it enables you to specify which domains are allowed in a script tag. Thank you to Yorick Girard for this and theallowedScriptHostnamescontribution. - โก๏ธ Updates whitelist to allowlist.
- ๐ New