{"id":"CVE-2013-1855","published":"2013-03-19T22:00:00Z","modified":"2024-08-06T15:20:35Z","title":"The sanitize_css method in lib/action_controller/vendor/html-scanner/html/sanitizer.rb in the Action Pack component in…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0263,"percentile":0.8588,"provenance":"source"},"cwes":[],"references":[{"url":"http://lists.apple.com/archives/security-announce/2013/Oct/msg00006.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"https://groups.google.com/group/rubyonrails-security/msg/8ed835a97cdd1afd?dmode=source&output=gplain","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://lists.opensuse.org/opensuse-updates/2014-01/msg00013.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-updates/2013-04/msg00073.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://support.apple.com/kb/HT5784","tags":["x_refsource_CONFIRM"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0698.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.apple.com/archives/security-announce/2013/Jun/msg00000.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://lists.opensuse.org/opensuse-updates/2013-04/msg00072.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-1863.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://weblog.rubyonrails.org/2013/3/18/SEC-ANN-Rails-3-2-13-3-1-12-and-2-3-18-have-been-released/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":17.18}]},"affected":[{"ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":["<2.3.18",">=3.0.0, <3.1.12",">=3.2.0, <3.2.13"],"patched":["2.3.18","3.1.12","3.2.13"],"from":["GHSA-q759-hwvc-m3jg"],"provenance":"source"}],"summary":{"text":"The sanitize_css method in lib/action_controller/vendor/html-scanner/html/sanitizer.rb in the Action Pack component of Ruby on Rails (before 2.3.18, 3.0.x, 3.1.x before 3.1.12, and 3.2.x before 3.2.13) does not properly handle newline characters. Remote attackers can exploit this by supplying crafted Cascading Style Sheets (CSS) token sequences to conduct cross-site scripting (XSS) attacks.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:45Z"},"euvd":{"id":"EUVD-2017-0289","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2012-3463","published":"2012-08-10","fixed":"3.2.8","kev":false},{"cve":"CVE-2012-3465","published":"2012-08-10","fixed":"3.2.8","kev":false,"link":{"from":"CVE-2012-3465","to":"CVE-2013-1855","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"2.3.16","toFixed":"2.3.18","daysApart":221}]}},{"cve":"CVE-2013-0156","published":"2013-01-13","fixed":"3.2.11","kev":false,"link":{"from":"CVE-2013-0156","to":"CVE-2013-1855","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"3.1.10","toFixed":"3.1.12","daysApart":65}]}},{"cve":"CVE-2013-1855","published":"2013-03-19","fixed":"3.2.13","kev":false},{"cve":"CVE-2013-1857","published":"2013-03-19","fixed":"3.2.13","kev":false},{"cve":"CVE-2014-0082","published":"2014-02-20","fixed":"3.2.17","kev":false},{"cve":"CVE-2013-4491","published":"2013-12-07","fixed":"4.0.2","kev":false}],"package":"RubyGems:actionpack"}}