CVE-2013-1855
The sanitize_css method in lib/action_controller/vendor/html-scanner/html/sanitizer.rb in the Action Pack component in Ruby on Rails…
- 4.3MediumCVSS base score
- 2.6%Exploitation in 30 daysEPSS · top 14% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
The sanitize_css method in lib/action_controller/vendor/html-scanner/html/sanitizer.rb in the Action Pack component in Ruby on Rails before 2.3.18, 3.0.x and 3.1.x before 3.1.12, and 3.2.x before 3.2.13 does not properly handle \n (newline) characters, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks via crafted Cascading Style Sheets (CSS) token sequences.
Timeline
ID reserved
By redhat
- 28 days later
· 28 days later
Published
- 11 years later
· 11 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
- EPSS (exploitation in 30 days)
- 2.6% · top 14% of all CVEs (10 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.3.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsactionpackGHSA-q759-hwvc-m3jg (opens in a new tab)
References
10
- APPLE-SA-2013-10-22-5 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- [rubyonrails-security] 20130318 [CVE-2013-1855] XSS vulnerability in sanitize_css in Action Pack (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- openSUSE-SU-2014:0019 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- openSUSE-SU-2013:0662 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- http://support.apple.com/kb/HT5784 (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2013:0698 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- APPLE-SA-2013-06-04-1 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- openSUSE-SU-2013:0661 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- RHSA-2014:1863 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://weblog.rubyonrails.org/2013/3/18/SEC-ANN-Rails-3-2-13-3-1-12-and-2-3-18-have-been-released/ (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2017-0289 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-q759-hwvc-m3jg (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2013-1855)Record last updated .