CVE-2013-4492 — i18n
Fix: svenfuchs/i18n@92b57b1CVE-2013-4492 is a Cross-site Scripting (XSS) vulnerability in i18n. A fix is available for i18n — see the affected versions and patch details below.
i18n gem Cross-site Scripting vulnerability
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
i18nReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.
Description
Cross-site scripting (XSS) vulnerability in exceptions.rb in the i18n gem before 0.6.6 for Ruby allows remote attackers to inject arbitrary web script or HTML via a crafted I18n::MissingTranslationData.new call.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💎RubyGems | i18n | all versions | 0.6.6bundle update i18n --conservative |
Affected Products
i18ni18n_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for i18n, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update i18n to 0.6.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2013-4492 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| CloudForms Management Engine 5.4 | cfme-0:5.4.0.5-1.el6cf | RHBA-2015:1100 |
| CloudForms Management Engine 5.7 | cfme-0:5.7.1.3-1.el7cf | RHSA-2017:0320 |
| CloudForms Management Engine 5.9 | ansible-0:2.4.3.0-1.el7ae | RHSA-2018:0380 |
Frequently Asked Questions
Is CVE-2013-4492 in your dependencies?
Find it across RubyGems, including transitive dependencies.