{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-33170","published":"2026-03-24T00:16:28.287000Z","last_modified":"2026-06-17T10:37:04.360000Z","status":"Analyzed","cvss":{"version":"4.0","score":5.3,"severity":"MEDIUM","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","part":"a","vendor":"rubyonrails","product":"rails","version_end_excluding":"7.2.3.1"},{"criteria":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","part":"a","vendor":"rubyonrails","product":"rails","version_start_including":"8.0.0","version_end_excluding":"8.0.4.1"},{"criteria":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","part":"a","vendor":"rubyonrails","product":"rails","version_start_including":"8.1.0","version_end_excluding":"8.1.2.1"}],"cpes_truncated":false,"vendors":["rubyonrails"],"products":["rubyonrails/rails"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-89vf-4333-qx8v","ecosystem":"RubyGems","name":"activesupport","purl":"pkg:gem/activesupport","ranges":[{"introduced":"8.1.0.beta1","fixed":"8.1.2.1"}],"versions":["8.1.0","8.1.0.beta1","8.1.0.rc1","8.1.1","8.1.2"],"versions_truncated":false},{"advisory":"GHSA-89vf-4333-qx8v","ecosystem":"RubyGems","name":"activesupport","purl":"pkg:gem/activesupport","ranges":[{"introduced":"8.0.0.beta1","fixed":"8.0.4.1"}],"versions":["8.0.0","8.0.0.1","8.0.0.beta1","8.0.0.rc1","8.0.0.rc2","8.0.1","8.0.2","8.0.2.1","8.0.3","8.0.4"],"versions_truncated":false},{"advisory":"GHSA-89vf-4333-qx8v","ecosystem":"RubyGems","name":"activesupport","purl":"pkg:gem/activesupport","ranges":[{"introduced":"0","fixed":"7.2.3.1"}],"versions":["5.0.0.racecar1","5.0.0.rc1","5.0.0.rc2","5.0.1","5.0.1.rc1","5.0.1.rc2","5.0.2","5.0.2.rc1","5.0.3","5.0.4","5.0.4.rc1","5.0.5","5.0.5.rc1","5.0.5.rc2","5.0.6","5.0.6.rc1","5.0.7","5.0.7.1","5.0.7.2","5.1.0","5.1.0.beta1","5.1.0.rc1","5.1.0.rc2","5.1.1","5.1.2","5.1.2.rc1","5.1.3","5.1.3.rc1","5.1.3.rc2","5.1.3.rc3","5.1.4","5.1.4.rc1","5.1.5","5.1.5.rc1","5.1.6","5.1.6.1","5.1.6.2","5.1.7","5.1.7.rc1","5.2.0","5.2.0.beta1","5.2.0.beta2","5.2.0.rc1","5.2.0.rc2","5.2.1","5.2.1.1","5.2.1.rc1","5.2.2","5.2.2.1","5.2.2.rc1","5.2.3","5.2.3.rc1","5.2.4","5.2.4.1","5.2.4.2","5.2.4.3","5.2.4.4","5.2.4.5","5.2.4.6","5.2.4.rc1","5.2.5","5.2.6","5.2.6.1","5.2.6.2","5.2.6.3","5.2.7","5.2.7.1","5.2.8","5.2.8.1","6.0.0","6.0.0.beta1","6.0.0.beta2","6.0.0.beta3","6.0.0.rc1","6.0.0.rc2","6.0.1","6.0.1.rc1","6.0.2","6.0.2.1","6.0.2.2","6.0.2.rc1","6.0.2.rc2","6.0.3","6.0.3.1","6.0.3.2","6.0.3.3","6.0.3.4","6.0.3.5","6.0.3.6","6.0.3.7","6.0.3.rc1","6.0.4","6.0.4.1","6.0.4.2","6.0.4.3","6.0.4.4","6.0.4.5","6.0.4.6","6.0.4.7","6.0.4.8","6.0.5","6.0.5.1","6.0.6","6.0.6.1","6.1.0","6.1.0.rc1","6.1.0.rc2","6.1.1","6.1.2","6.1.2.1","6.1.3","6.1.3.1","6.1.3.2","6.1.4","6.1.4.1","6.1.4.2","6.1.4.3","6.1.4.4","6.1.4.5","6.1.4.6","6.1.4.7","6.1.5","6.1.5.1","6.1.6","6.1.6.1","6.1.7","6.1.7.1","6.1.7.10","6.1.7.2","6.1.7.3","6.1.7.4","6.1.7.5","6.1.7.6","6.1.7.7","6.1.7.8","6.1.7.9","7.0.0","7.0.0.alpha1","7.0.0.alpha2","7.0.0.rc1","7.0.0.rc2","7.0.0.rc3","7.0.1","7.0.10","7.0.2","7.0.2.1","7.0.2.2","7.0.2.3","7.0.2.4","7.0.3","7.0.3.1","7.0.4","7.0.4.1","7.0.4.2","7.0.4.3","7.0.5","7.0.5.1","7.0.6","7.0.7","7.0.7.1","7.0.7.2","7.0.8","7.0.8.1","7.0.8.2","7.0.8.3","7.0.8.4","7.0.8.5","7.0.8.6","7.0.8.7","7.0.9","7.1.0","7.1.0.beta1","7.1.0.rc1","7.1.0.rc2","7.1.1","7.1.2","7.1.3","7.1.3.1","7.1.3.2","7.1.3.3","7.1.3.4","7.1.4","7.1.4.1","7.1.4.2","7.1.5","7.1.5.1","7.1.5.2","7.1.6","7.2.0","7.2.0.beta1","7.2.0.beta2","7.2.0.beta3","7.2.0.rc1","7.2.1","7.2.1.1","7.2.1.2","7.2.2","7.2.2.1","7.2.2.2","7.2.3"],"versions_truncated":false}],"severity":"medium","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-33170/","html_en":"/en/cve/CVE-2026-33170/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-33170","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-33170"},"untrusted":{"vendor_name":"Rubyonrails","product_name":"Rails","desc_en":"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.","affected":[{"untrusted_vendor":"rails","untrusted_product":"activesupport","versions":[]}],"references":[{"url":"https://github.com/rails/rails/commit/50d732af3b7c8aaf63cbcca0becbc00279b215b7","tags":["Patch"]},{"url":"https://github.com/rails/rails/commit/6e8a81108001d58043de9e54a06fca58962fc2db","tags":["Patch"]},{"url":"https://github.com/rails/rails/commit/c1ad0e8e1972032f3395853a5e99cea035035beb","tags":["Patch"]},{"url":"https://github.com/rails/rails/releases/tag/v7.2.3.1","tags":["Release Notes"]},{"url":"https://github.com/rails/rails/releases/tag/v8.0.4.1","tags":["Release Notes"]},{"url":"https://github.com/rails/rails/releases/tag/v8.1.2.1","tags":["Release Notes"]},{"url":"https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v","tags":["Vendor Advisory"]}]}}