Name | CVE-2020-15169 |
Description | In Action View before versions 5.2.4.4 and 6.0.3.3 there is a potential Cross-Site Scripting (XSS) vulnerability in Action View's translation helpers. Views that allow the user to control the default (not found) value of the `t` and `translate` helpers could be susceptible to XSS attacks. When an HTML-unsafe string is passed as the default for a missing translation key named html or ending in _html, the default string is incorrectly marked as HTML-safe and not escaped. This is patched in versions 6.0.3.3 and 5.2.4.4. A workaround without upgrading is proposed in the source advisory. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2403-1, DSA-4766-1, ELA-295-1 |
Debian Bugs | 970040 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
rails (PTS) | jessie, jessie (lts) | 2:4.1.8-1+deb8u9 | fixed |
stretch (security), stretch (lts), stretch | 2:4.2.7.1-1+deb9u5 | fixed | |
buster (security), buster, buster (lts) | 2:5.2.2.1+dfsg-1+deb10u5 | fixed | |
bullseye (security), bullseye | 2:6.0.3.7+dfsg-2+deb11u2 | fixed | |
bookworm | 2:6.1.7.3+dfsg-2~deb12u1 | fixed | |
sid, trixie | 2:6.1.7.3+dfsg-4 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
rails | source | jessie | 2:4.1.8-1+deb8u8 | ELA-295-1 | ||
rails | source | stretch | 2:4.2.7.1-1+deb9u4 | DLA-2403-1 | ||
rails | source | buster | 2:5.2.2.1+dfsg-1+deb10u2 | DSA-4766-1 | ||
rails | source | (unstable) | 2:6.0.3.3+dfsg-1 | 970040 |
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2020-15169.yml
https://groups.google.com/g/rubyonrails-security/c/b-C9kSGXYrc?pli=1
https://github.com/rails/rails/commit/e663f084460ea56c55c3dc76f78c7caeddeeb02e (master)
https://github.com/rails/rails/commit/aaa7ab1320330b3c4fa8f0fbda716dcfa21e3d65 (5.2)