Back
CVE-2013-1857
The sanitize helper in lib/action_controller/vendor/html-scanner/html/sanitizer.rb in the Action Pack component in Ruby on Rails before…
Medium4.3EPSS 1.9%
- Published
- Updated
- Reserved
- Assigned by
- redhat
Description
The sanitize helper 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 encoded : (colon) characters in URLs, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks via a crafted scheme name, as demonstrated by including a : sequence.
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)
- 1.9% · top 21% of all CVEs (6 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-j838-vfpq-fmf2 (opens in a new tab)
References (10)
- APPLE-SA-2013-10-22-5 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_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
- [rubyonrails-security] 20130318 [CVE-2013-1857] XSS Vulnerability in the `sanitize` helper of Ruby on Rails (opens in a new tab)mailing-listx_refsource_MLISTx_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-j838-vfpq-fmf2 (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-1857)Record last updated .