CVE-2026-33170

MEDIUM6.1EPSS 0.01%

Rails Active Support has a possible XSS vulnerability in SafeBuffer#%

發布日:2026/3/23修改日:2026/5/13
也稱為:GHSA-89vf-4333-qx8vCGA-w98x-3v9v-cp74

描述

### 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 responsibly reported by @ch4n3-yoon

受影響套件(2)

CVSS 分數

來源版本嚴重程度向量
osvCVSS 4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
osvCVSS 3.1MEDIUM6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

參考連結(11)