Staging Environment: Content and features may be unstable or change without notice.
Search for vulnerabilities
Vulnerability details: VCID-5tky-d2en-u7c7
Vulnerability ID VCID-5tky-d2en-u7c7
Aliases CVE-2026-33170
GHSA-89vf-4333-qx8v
Summary Rails Active Support has a possible XSS vulnerability in SafeBuffer#% ### 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.
Status Published
Exploitability 0.5
Weighted Severity 6.2
Risk 3.1
Affected and Fixed Packages Package Details
Weaknesses (1)
System Score Found at
cvssv3 5.4 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-33170.json
epss 0.00013 https://api.first.org/data/v1/epss?cve=CVE-2026-33170
epss 0.00013 https://api.first.org/data/v1/epss?cve=CVE-2026-33170
epss 0.00013 https://api.first.org/data/v1/epss?cve=CVE-2026-33170
epss 0.00013 https://api.first.org/data/v1/epss?cve=CVE-2026-33170
epss 0.00013 https://api.first.org/data/v1/epss?cve=CVE-2026-33170
epss 0.00013 https://api.first.org/data/v1/epss?cve=CVE-2026-33170
epss 0.00013 https://api.first.org/data/v1/epss?cve=CVE-2026-33170
cvssv3.1 4.3 https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
cvssv3.1_qr MODERATE https://github.com/advisories/GHSA-89vf-4333-qx8v
cvssv4 5.3 https://github.com/rails/rails
generic_textual MODERATE https://github.com/rails/rails
cvssv4 5.3 https://github.com/rails/rails/commit/50d732af3b7c8aaf63cbcca0becbc00279b215b7
generic_textual MODERATE https://github.com/rails/rails/commit/50d732af3b7c8aaf63cbcca0becbc00279b215b7
ssvc Track https://github.com/rails/rails/commit/50d732af3b7c8aaf63cbcca0becbc00279b215b7
cvssv4 5.3 https://github.com/rails/rails/commit/6e8a81108001d58043de9e54a06fca58962fc2db
generic_textual MODERATE https://github.com/rails/rails/commit/6e8a81108001d58043de9e54a06fca58962fc2db
ssvc Track https://github.com/rails/rails/commit/6e8a81108001d58043de9e54a06fca58962fc2db
cvssv4 5.3 https://github.com/rails/rails/commit/c1ad0e8e1972032f3395853a5e99cea035035beb
generic_textual MODERATE https://github.com/rails/rails/commit/c1ad0e8e1972032f3395853a5e99cea035035beb
ssvc Track https://github.com/rails/rails/commit/c1ad0e8e1972032f3395853a5e99cea035035beb
cvssv4 5.3 https://github.com/rails/rails/releases/tag/v7.2.3.1
generic_textual MODERATE https://github.com/rails/rails/releases/tag/v7.2.3.1
ssvc Track https://github.com/rails/rails/releases/tag/v7.2.3.1
cvssv4 5.3 https://github.com/rails/rails/releases/tag/v8.0.4.1
generic_textual MODERATE https://github.com/rails/rails/releases/tag/v8.0.4.1
ssvc Track https://github.com/rails/rails/releases/tag/v8.0.4.1
cvssv4 5.3 https://github.com/rails/rails/releases/tag/v8.1.2.1
generic_textual MODERATE https://github.com/rails/rails/releases/tag/v8.1.2.1
ssvc Track https://github.com/rails/rails/releases/tag/v8.1.2.1
cvssv3.1_qr MODERATE https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
cvssv4 5.3 https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
generic_textual MODERATE https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
ssvc Track https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
cvssv4 5.3 https://nvd.nist.gov/vuln/detail/CVE-2026-33170
generic_textual MODERATE https://nvd.nist.gov/vuln/detail/CVE-2026-33170
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-33170.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N Found at https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

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 Found at https://github.com/rails/rails
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

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 Found at https://github.com/rails/rails/commit/50d732af3b7c8aaf63cbcca0becbc00279b215b7
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-25T19:20:16Z/ Found at https://github.com/rails/rails/commit/50d732af3b7c8aaf63cbcca0becbc00279b215b7
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 Found at https://github.com/rails/rails/commit/6e8a81108001d58043de9e54a06fca58962fc2db
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-25T19:20:16Z/ Found at https://github.com/rails/rails/commit/6e8a81108001d58043de9e54a06fca58962fc2db
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 Found at https://github.com/rails/rails/commit/c1ad0e8e1972032f3395853a5e99cea035035beb
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-25T19:20:16Z/ Found at https://github.com/rails/rails/commit/c1ad0e8e1972032f3395853a5e99cea035035beb
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 Found at https://github.com/rails/rails/releases/tag/v7.2.3.1
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-25T19:20:16Z/ Found at https://github.com/rails/rails/releases/tag/v7.2.3.1
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 Found at https://github.com/rails/rails/releases/tag/v8.0.4.1
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-25T19:20:16Z/ Found at https://github.com/rails/rails/releases/tag/v8.0.4.1
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 Found at https://github.com/rails/rails/releases/tag/v8.1.2.1
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-25T19:20:16Z/ Found at https://github.com/rails/rails/releases/tag/v8.1.2.1
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 Found at https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-25T19:20:16Z/ Found at https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
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 Found at https://nvd.nist.gov/vuln/detail/CVE-2026-33170
Attack Vector (AV) Attack Complexity (AC) Attack Requirements (AT) Privileges Required (PR) User Interaction (UI) Vulnerable System Impact Confidentiality (VC) Vulnerable System Impact Integrity (VI) Vulnerable System Impact Availability (VA) Subsequent System Impact Confidentiality (SC) Subsequent System Impact Integrity (SI) Subsequent System Impact Availability (SA)

network

adjacent

local

physical

low

high

none

present

none

low

high

none

passive

active

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.022
EPSS Score 0.00013
Published At April 2, 2026, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2026-04-01T12:53:16.553996+00:00 GithubOSV Importer Import https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-89vf-4333-qx8v/GHSA-89vf-4333-qx8v.json 38.0.0