Cross-site Scripting (XSS) Affecting ruby3.4-rails-8.0 package, versions <8.0.5-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.35% (29th 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 IDSNYK-CHAINGUARDLATEST-RUBY34RAILS80-15878813
  • published3 Apr 2026
  • disclosed24 Mar 2026

Introduced: 24 Mar 2026

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

How to fix?

Upgrade Chainguard ruby3.4-rails-8.0 to version 8.0.5-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby3.4-rails-8.0 package and not the ruby3.4-rails-8.0 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1