Cross-site Scripting (XSS) Affecting cerbos package, versions <0.51.0-r7


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-WOLFILATEST-CERBOS-15446192
  • published10 Mar 2026
  • disclosed6 Mar 2026

Introduced: 6 Mar 2026

CVE-2026-27142  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Wolfi cerbos to version 0.51.0-r7 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cerbos package and not the cerbos package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0.

CVSS Base Scores

version 3.1