cve.bz

CVE-2026-33170

5.3 mediumEPSS 0.3%

Medium (5.3) in rubyonrails rails. EPSS 0.3% chance of exploitation in the next 30 days. Fixed in activesupport 7.2.3.1, 8.0.4.1, 8.1.2.1.

Active Support is a toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, `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. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

Severity

CVSS 4.0

5.3 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.3% chance of exploitation in the next 30 days; higher than 27% of CVEs (scores of 2026-10-31)
CWE
CWE-79
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-89vf-4333-qx8vRubyGemsactivesupport>=8.1.0.beta1 <8.1.2.18.1.2.1
GHSA-89vf-4333-qx8vRubyGemsactivesupport>=8.0.0.beta1 <8.0.4.18.0.4.1
GHSA-89vf-4333-qx8vRubyGemsactivesupport<7.2.3.17.2.3.1

References

Check your stackJSON