CVE-2013-1855
actionpack Cross-site Scripting vulnerability
Also known as GHSA-q759-hwvc-m3jg
Mitigation
- Upgrade actionpack to one of 2.3.18, 3.1.12, 3.2.13 (or later in the same release line).
Who should check
- Projects that depend on RubyGems package actionpack (< 2.3.18)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- actionpack < 2.3.18
- Fixed in
- 2.3.18, 3.1.12, 3.2.13
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.3 (v2.0, NVD)AV:N/AC:M/Au:N/C:N/I:P/A:N
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Medium
- Authentication: None
- Confidentiality impact: None
- Integrity impact: Partial
- Availability impact: None
- EPSS
- 2.63% chance of exploitation in 30 days (percentile 86, 2026-11-26)
- CWE
- CWE-79
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems actionpack | < 2.3.18 | 2.3.18, 3.1.12, 3.2.13 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2013-1855. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2013-1855.md Affected: actionpack < 2.3.18 Fixed in: 2.3.18, 3.1.12, 3.2.13 Steps: 1. Search this machine and project for actionpack (RubyGems), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://lists.apple.com/archives/security-announce/2013/Oct/msg00006.html
- http://lists.opensuse.org/opensuse-updates/2014-01/msg00013.html
- http://lists.opensuse.org/opensuse-updates/2013-04/msg00073.html
- http://rhn.redhat.com/errata/RHSA-2013-0698.html
- http://lists.apple.com/archives/security-announce/2013/Jun/msg00000.html
- http://lists.opensuse.org/opensuse-updates/2013-04/msg00072.html
- http://rhn.redhat.com/errata/RHSA-2014-1863.html
- https://nvd.nist.gov/vuln/detail/CVE-2013-1855
Other
- https://groups.google.com/group/rubyonrails-security/msg/8ed835a97cdd1afd?dmode=source&output=gplain
- http://support.apple.com/kb/HT5784
- http://weblog.rubyonrails.org/2013/3/18/SEC-ANN-Rails-3-2-13-3-1-12-and-2-3-18-have-been-released/
- https://access.redhat.com/errata/RHSA-2013:0698
- https://access.redhat.com/errata/RHSA-2014:1863
- https://access.redhat.com/security/cve/CVE-2013-1855
- https://bugzilla.redhat.com/show_bug.cgi?id=921331
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2013-1855.yml
- https://web.archive.org/web/20130609174600/http://lists.apple.com/archives/security-announce/2013/Jun/msg00000.html
- https://web.archive.org/web/20131109010518/http://lists.apple.com/archives/security-announce/2013/Oct/msg00006.html
- http://weblog.rubyonrails.org/2013/3/18/SEC-ANN-Rails-3-2-13-3-1-12-and-2-3-18-have-been-released
FAQ
Is CVE-2013-1855 being exploited?
There is no confirmed exploitation: CVE-2013-1855 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.63% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2013-1855?
Medium: CVSS 4.3 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2013-1855?
actionpack < 2.3.18.
Is there a fix for CVE-2013-1855?
Yes. Fixed in 2.3.18, 3.1.12, 3.2.13. Upgrade actionpack to one of 2.3.18, 3.1.12, 3.2.13 (or later in the same release line).
How do I check if I'm affected by CVE-2013-1855?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.