Cross-site Scripting (XSS) Affecting rubygem24-did_you_mean package, versions <0:1.1.0-2.12.amzn1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
8.63% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN201803-RUBYGEM24DIDYOUMEAN-1724513
  • published27 Sept 2021
  • disclosed18 Jan 2018

Introduced: 18 Jan 2018

CVE-2012-6708  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 rubygem24-did_you_mean to version 0:1.1.0-2.12.amzn1 or higher.
This issue was patched in ALAS-2020-1422.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rubygem24-did_you_mean package and not the rubygem24-did_you_mean package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

jQuery before 1.9.0 is vulnerable to Cross-site Scripting (XSS) attacks. The jQuery(strInput) function does not differentiate selectors from HTML in a reliable fashion. In vulnerable versions, jQuery determined whether the input was HTML by looking for the '<' character anywhere in the string, giving attackers more flexibility when attempting to construct a malicious payload. In fixed versions, jQuery only deems the input to be HTML if it explicitly starts with the '<' character, limiting exploitability only to attackers who can control the beginning of a string, which is far less common.

CVSS Base Scores

version 3.1