Vulnerability library
Security checkSeptember 03, 2026

ApostropheCMS: Mutation-XSS / allowedTags bypass via literal `</textarea/>` solidus close

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmsanitize-html

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A mutation-XSS / allowedTags bypass: when textarea (or xmp) is included in allowedTags, an input containing a literal </textarea/> (a solidus right after the RCDATA end-tag name) lets non-allowed markup such as <img src=x onerror=…> pass through sanitizeHtml() live and unescaped, even though img/onerror are not in the allowlist.

Recommendation

Update the sanitize-html package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 2.17.5
  • Patched version(s): 2.17.6

References

Could your website be exposed too?

SmartScanner can check your website for ApostropheCMS: Mutation-XSS / allowedTags bypass via literal `</textarea/>` solidus close and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 03, 2026