Back
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…
Medium4.3EPSS 2.6%
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
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 (5 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.3.
Weakness
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)
- 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://trackcve.app/cve/CVE-2013-1855)Record last updated .