<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-06T22:12:36.292277+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/cve-2020-5267</id>
    <title>CVE-2020-5267 — Possible XSS vulnerability in ActionView</title>
    <updated>2026-10-06T22:12:36.310662+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> rails actionview</p>
<p>In ActionView before versions 6.0.2.2 and 5.2.4.2, there is a possible XSS vulnerability in ActionView's JavaScript literal escape helpers. Views that use the `j` or `escape_javascript` methods may be susceptible to XSS attacks. The issue is fixed in versions 6.0.2.2 and 5.2.4.2.</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2020-5267"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-65cv-r6x7-79hv</id>
    <title>GHSA-65cv-r6x7-79hv — Cross site scripting vulnerability in ActionView</title>
    <updated>2026-10-06T22:12:36.310725+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> RubyGems: actionview</p>
<p>There is a possible cross site scripting (XSS) vulnerability in ActionView's JavaScript literal escape helpers.  Views that use the `j` or `escape_javascript` methods may be susceptible to XSS attacks.</p>
<p>### Impact</p>
<p>There is a possible XSS vulnerability in the `j` and `escape_javascript` methods in ActionView.  These methods are used for escaping JavaScript string literals.  Impacted code will look something like this:</p>
<p>```erb
&lt;script&gt;let a = `&lt;%= j unknown_input %&gt;`&lt;/script&gt;
```</p>
<p>or</p>
<p>```erb
&lt;script&gt;let a = `&lt;%= escape_javascript unknown_input %&gt;`&lt;/script&gt;
```</p>
<p>### Releases</p>
<p>The 6.0.2.2 and 5.2.4.2 releases are available at the normal locations.</p>
<p>### Workarounds</p>
<p>For those that can't upgrade, the following monkey patch may be used:</p>
<p>```ruby
ActionView::Helpers::JavaScriptHelper::JS_ESCAPE_MAP.merge!(
  {
    "`" =&gt; "\\`",
    "$" =&gt; "\\$"
  }
)</p>
<p>module ActionView::Helpers::JavaScriptHelper
  alias :old_ej :escape_javascript
  alias :old_j :j</p>
<p>def escape_javascript(javascript)
    javascript = javascript.to_s
    if javascript.empty?
      result = ""
    else
      result = javascript.gsub(/(\\|&lt;\/|\r\n|\342\200\250|\342\200\251|[\n\r"']|[`]|[$])/u, JS_ESCAPE_MAP)
    end
    javascript.html_safe? ? result.html_safe : result
  end</p>
<p>alias :j :escape_javascript
end
```</p>
<p>### Patches</p>
<p>To aid users who aren't able to upgrade immediately we have provided patches for
the two supported release series. They are in git-am format and consist of a
single changeset.</p>
<p>* [5-2-js-helper-…</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-65cv-r6x7-79hv"/>
  </entry>
</feed>
