Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2020-36644: Escape filename to avoid XSS from malicious input · jamesmartin/inline_svg@f5363b3

A vulnerability has been found in jamesmartin Inline SVG up to 1.7.1 and classified as problematic. Affected by this vulnerability is an unknown functionality of the file lib/inline_svg/action_view/helpers.rb of the component URL Parameter Handler. The manipulation of the argument filename leads to cross site scripting. The attack can be launched remotely. Upgrading to version 1.7.2 is able to address this issue. The name of the patch is f5363b351508486021f99e083c92068cf2943621. It is recommended to upgrade the affected component. The identifier VDB-217597 was assigned to this vulnerability.

CVE
#xss#vulnerability

@@ -46,6 +46,17 @@ def transform(doc) expect(output).to be_html_safe end
it “escapes malicious input” do malicious = “–></svg><script>alert(1)</script><svg>.svg” allow(InlineSvg::AssetFile).to receive(:named). with(malicious). and_raise(InlineSvg::AssetFile::FileNotFound.new)
output = helper.send(helper_method, malicious) expect(output).to eq “<svg><!-- SVG file not found: ‘#{ERB::Util.html_escape_once(malicious)}’ --></svg>” expect(output).to be_html_safe end
it “gives a helpful hint when no .svg extension is provided in the filename” do allow(InlineSvg::AssetFile).to receive(:named). with(‘missing-file-with-no-extension’).

Related news

GHSA-p33q-4h4m-j994: Inline SVG vulnerable to Cross-site Scripting

A vulnerability has been found in jamesmartin Inline SVG up to 1.7.1 and classified as problematic. Affected by this vulnerability is an unknown functionality of the file `lib/inline_svg/action_view/helpers.rb` of the component `URL Parameter Handler`. The manipulation of the argument filename leads to cross site scripting. The attack can be launched remotely. Upgrading to version 1.7.2 is able to address this issue. The name of the patch is f5363b351508486021f99e083c92068cf2943621. It is recommended to upgrade the affected component. The identifier VDB-217597 was assigned to this vulnerability.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda