Loading advisory.
Loading advisory.
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in view_component
This is an XSS vulnerability that has the potential to impact anyone using translations with the view_component gem. Data received via user input and passed as an interpolation argument to the translate method is not properly sanitized before display.
Published 2022-03-02 22:24 UTC · Modified 2025-04-23 18:59 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| view_component | RubyGems | >= 2.31.0, < 2.31.2 >= 2.32.0, < 2.49.1 versions 2.31.0, 2.31.1, 2.32.0, 2.33.0, 2.34.0, 2.35.0, 2.36.0, 2.37.0, 2.38.0, 2.39.0, 2.40.0, 2.41.0, 2.42.0, 2.43.0, 2.43.1, 2.44.0, 2.45.0, 2.46.0, 2.47.0, 2.48.0 and 1 more | 2.31.2, 2.49.1 | gem install view_component -v 2.31.2gem install view_component -v 2.49.1 |
This is an XSS vulnerability that has the potential to impact anyone using translations with the view_component gem. Data received via user input and passed as an interpolation argument to the translate method is not properly sanitized before display.
Versions 2.29.1 and 2.49.1 have been released and fully mitigate the vulnerability.
Avoid passing user input to the translate function, or sanitize the inputs before passing them.
If you have any questions or comments about this advisory:
Open an issue in the github/view_component project
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.011 on 2026-11-24 to 0.011 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.011 | first score | v2026.06.15 |
| 2026-11-26 | 0.011 | 0.011 | v2026.06.15 |