Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. actionpack
  4. ›
  5. CVE-2011-4319

CVE-2011-4319: Translate helper method which may allow an attacker to insert arbitrary code into a page

November 28, 2011 (updated August 8, 2019)

The helper method for i18n translations has a convention whereby translations strings with a name ending in ‘html’ are considered HTML safe. There is also a mechanism for interpolation. It has been discovered that these ‘html’ strings allow arbitrary values to be contained in the interpolated input, and these values are not escaped.

References

  • github.com/rails/rails/commit/ba2d85012088fd0db0fab98b2e512c77c83cbade
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/OSVDB-77199.yml
  • groups.google.com/forum/

Code Behaviors & Features

Detect and mitigate CVE-2011-4319 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0.alpha0 before 3.0.11, all versions starting from 3.1.0.alpha0 before 3.1.2

Fixed versions

  • 3.0.11
  • 3.1.2

Solution

Upgrade to latest or use workaround; see provided link.

Impact 4.3 MEDIUM

AV:N/AC:M/Au:N/C:N/I:P/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

gem/actionpack/CVE-2011-4319.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:16 +0000.