Skip to content

fix(deps): update dependency sanitize-html to v2.17.2#17

Open
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/sanitize-html-2.x
Open

fix(deps): update dependency sanitize-html to v2.17.2#17
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/sanitize-html-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Sep 15, 2022

This PR contains the following updates:

Package Change Age Confidence
sanitize-html (source) 2.7.12.17.2 age confidence
@types/sanitize-html (source) 2.6.22.16.1 age confidence

Release Notes

apostrophecms/apostrophe (sanitize-html)

v2.17.2

Compare Source

Changes
  • Upgrade htmlparser2 from 8.x to 10.1.0. This improves security by correctly decoding zero-padded numeric character references (e.g., &#​0000001) that previously bypassed javascript: URL detection. Also fixes double-encoding of entities inside raw text elements like textarea and option.

v2.17.1

Compare Source

Fixes
  • Fix unclosed tags (e.g., <hello) returning empty string in escape and recursiveEscape modes. Fixes #​706.
    Thanks to Byeong Hyeon for the fix.

v2.17.0

Compare Source

  • Add preserveEscapedAttributes, allowing attributes on escaped disallowed tags to be retained. Thanks to Ben Elliot for this new option.

v2.16.0

Compare Source

  • Add onOpenTag and onCloseTag events to enable advanced filtering to hook into the parser. Thanks to Rimvydas Naktinis.

v2.15.0

Compare Source

  • Allow keeping tag content when discarding with exclusive filter by returning "excludeTag". Thanks to rChaoz.

v2.14.0

Compare Source

  • Fix adding text with transformTags in cases where it originally had no text child elements. Thanks to f0x.

v2.13.1

Compare Source

  • Fix to allow regex in allowedClasses wildcard whitelist. Thanks to anak-dev.

v2.13.0

Compare Source

  • Documentation update regarding minimum supported TypeScript version.

  • Added disallowedTagsMode: completelyDiscard option to remove the content also in HTML. Thanks to Gauav Kumar for this addition.

v2.12.1

Compare Source

  • Do not parse sourcemaps in post-css. This fixes a vulnerability in which information about the existence or non-existence of files on a server could be disclosed via properly crafted HTML input when the style attribute is allowed by the configuration. Thanks to the Snyk Security team for the disclosure and to Dylan Armstrong for the fix.

v2.12.0

Compare Source

  • Introduced the allowedEmptyAttributes option, enabling explicit specification of empty string values for select attributes, with the default attribute set to alt. Thanks to Na for the contribution.

  • Clarified the use of SVGs with a new test and changes to documentation. Thanks to Gauav Kumar for the contribution.

  • Do not process source maps when processing style tags with PostCSS.

v2.11.0

Compare Source

  • Fix to allow false in allowedClasses attributes. Thanks to Kevin Jiang for this fix!
  • Upgrade mocha version
  • Apply small linter fixes in tests
  • Add .idea temp files to .gitignore
  • Thanks to Vitalii Shpital for the updates!
  • Show parseStyleAttributes warning in browser only. Thanks to mog422 for this update!
  • Remove empty non-boolean attributes via an exhaustive, configurable list of known non-boolean attributes. Thanks to Dylan Armstrong for this update!

v2.10.0

Compare Source

  • Fix auto-adding escaped closing tags. In other words, do not add implied closing tags to disallowed tags when disallowedTagMode is set to any variant of escape -- just escape the disallowed tags that are present. This fixes issue #​464. Thanks to Daniel Liebner
  • Add tagAllowed() helper function which takes a tag name and checks it against options.allowedTags and returns true if the tag is allowed and false if it is not.

v2.9.0

Compare Source

v2.8.1

Compare Source

  • If the argument is a number, convert it to a string, for backwards compatibility. Thanks to Alexander Schranz.

v2.8.0

Compare Source

  • Upgrades htmlparser2 to new major version ^8.0.0. Thanks to Kedar Chandrayan for this contribution.

v2.7.3

Compare Source

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

v2.7.2

Compare Source

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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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 these updates again.


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

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

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quark ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2025 11:27pm

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Sep 15, 2022

Deploying quark with  Cloudflare Pages  Cloudflare Pages

Latest commit: 67704ca
Status: ✅  Deploy successful!
Preview URL: https://6187e706.quark.pages.dev
Branch Preview URL: https://renovate-sanitize-html-2-x.quark.pages.dev

View logs

@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 11540b8 to 5c3b41e Compare October 27, 2022 15:19
@renovate renovate bot changed the title fix(deps): update dependency sanitize-html to v2.7.2 fix(deps): update dependency sanitize-html to v2.7.3 Oct 27, 2022
@renovate renovate bot changed the title fix(deps): update dependency sanitize-html to v2.7.3 fix(deps): update dependency sanitize-html to v2.10.0 Mar 11, 2023
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 5c3b41e to 10477d6 Compare March 11, 2023 05:32
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 10477d6 to 0ddc78d Compare March 17, 2023 22:08
@renovate renovate bot changed the title fix(deps): update dependency sanitize-html to v2.10.0 fix(deps): update dependency sanitize-html to v2.11.0 Jun 21, 2023
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 0ddc78d to 5a11d2a Compare June 21, 2023 16:59
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 5a11d2a to 43d6a78 Compare September 25, 2023 15:34
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 43d6a78 to b3cdd19 Compare October 10, 2023 19:52
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from b3cdd19 to 5e1eef9 Compare October 18, 2023 16:16
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 5e1eef9 to ef7220f Compare November 7, 2023 16:39
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from ef7220f to e6e89d8 Compare November 21, 2023 01:42
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from e6e89d8 to 641e178 Compare February 5, 2024 07:00
@renovate renovate bot changed the title fix(deps): update dependency sanitize-html to v2.11.0 fix(deps): update dependency sanitize-html to v2.12.0 Feb 21, 2024
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 641e178 to 3a7af1e Compare February 21, 2024 16:02
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 3a7af1e to 352a7ba Compare February 22, 2024 18:48
@renovate renovate bot changed the title fix(deps): update dependency sanitize-html to v2.12.0 fix(deps): update dependency sanitize-html to v2.12.1 Feb 22, 2024
@renovate renovate bot changed the title fix(deps): update dependency sanitize-html to v2.12.1 chore(deps): update dependency @types/sanitize-html to v2.11.0 Mar 2, 2024
@renovate renovate bot changed the title chore(deps): update dependency @types/sanitize-html to v2.11.0 chore(deps): update dependency @types/sanitize-html to v2.13.0 Aug 18, 2024
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 352a7ba to a9756d0 Compare August 18, 2024 23:06
@renovate renovate bot changed the title chore(deps): update dependency @types/sanitize-html to v2.13.0 chore(deps): update dependency @types/sanitize-html to v2.15.0 Mar 28, 2025
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from a9756d0 to 9fdf28d Compare March 28, 2025 19:46
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 9fdf28d to 2709fa1 Compare May 5, 2025 23:27
@renovate renovate bot changed the title chore(deps): update dependency @types/sanitize-html to v2.15.0 chore(deps): update dependency @types/sanitize-html to v2.16.0 May 5, 2025
@renovate renovate bot changed the title chore(deps): update dependency @types/sanitize-html to v2.16.0 chore(deps): update dependency @types/sanitize-html to v2.16.1 Mar 6, 2026
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from 2709fa1 to fef1d11 Compare March 6, 2026 17:38
@renovate renovate bot force-pushed the renovate/sanitize-html-2.x branch from fef1d11 to 67704ca Compare March 27, 2026 02:08
@renovate renovate bot changed the title chore(deps): update dependency @types/sanitize-html to v2.16.1 fix(deps): update dependency sanitize-html to v2.17.2 Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants