Back to list

Rails Active Support has a possible XSS vulnerability in SafeBuffer#% — CVE-2026-33170

GitHub · GitHub · CVE-2026-33170

ID
CVE-2026-33170
Date
Updated
Activity
Source
GitHub
Vendor
GitHub
Threat
medium
CVSS
5.3
EPSS
0.0001

Summary

### Impact `SafeBuffer#%` does not propagate the `@html_unsafe` flag to the newly created buffer. If a `SafeBuffer` is mutated in place (e.g. via `gsub!`) and then formatted with `%` using untrusted arguments, the result incorrectly reports `html_safe? == true`, bypassing ERB auto-escaping and possibly leading to XSS. ### Releases The fixed releases are available at the normal locations. ### Credit This issue was…

Product

rubygems: activesupport

What to do

General, cautious steps (verify details in the official source):

  • Review exposure and plan remediation based on risk and environment.
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories