CVE-2013-6416Rubyonrails Rails
Medium 4.3 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 2.0
- 4.3
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 81
- Auth required
- No
- Published
- Dec 7, 2013
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
What happens
Cross-site scripting (XSS) vulnerability in the simple_format helper in actionpack/lib/action_view/helpers/text_helper.rb in Ruby on Rails 4.x before 4.0.2 allows remote attackers to inject arbitrary web script or HTML via a crafted HTML attribute.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | actionpack |
≥ 4.0.0 < 4.0.2 |
4.0.2 |
gem "actionpack", ">= 4.0.2" |
Per OSV / GitHub Advisories (GHSA-w37c-q653-qg95). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | ≤ 4.0.1 |
| rubyonrails | rails | 4.0.0 |
| rubyonrails | rails | 4.0.0 |
| rubyonrails | rails | 4.0.0 |
| rubyonrails | rails | 4.0.0 |
| rubyonrails | rails | 4.0.1 |
Official sources
References
Links published by the sources. Open them with care.