HtmlSanitizer patches CSS removal denial-of-service vulnerability

  • HtmlSanitizer
  • denial of service
  • CSS

Unauthenticated requests could exhaust application workers

Updates available in versions 9.0.967 and 9.1.968-beta

Administrators can mitigate by disallowing style attributes

HtmlSanitizer maintainers patched a denial-of-service vulnerability in the library’s CSS removal functionality. GitHub’s security advisory says an unauthenticated request could occupy a synchronous application worker for seconds.

Concurrent requests could keep all application workers busy, causing a denial of service without user interaction. The advisory identifies affected versions as those below 9.0.967 and versions from 9.1.878-beta up to, but not including, 9.1.968-beta.

The issue is fixed in HtmlSanitizer versions 9.0.967 and 9.1.968-beta. The advisory also lists disallowing the style attribute as a workaround.