CVE-2020-5241: Matestack ui core Cross-Site Scripting Vulnerability
HIGHCVE-2020-5241 is a HIGH (CVSS 7.7) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Matestack ui core libraries in the RubyGems ecosystem. The issue involves xss/script injection vulnerability in matestack. Remediation is available by upgrading affected packages to version 0.7.4.
CVE-2020-5241 at a Glance
Security Impact
CVSS: 7.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N).
How to Fix CVE-2020-5241
To remediate this vulnerability, upgrade all affected Matestack ui core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade matestack-ui-core to 0.7.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for matestack-ui-core
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-5241, inspect your project dependencies for Matestack ui core:
inspect dependencies for matestack-ui-core
Analyze the terminal output to locate any version of Matestack ui core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In Matestack ui core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-5241 Affected Matestack ui core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
matestack-ui-core
|
RubyGems |
< 0.7.4
|
0.7.4
|
References
Frequently Asked Questions
What is CVE-2020-5241?
Which Matestack ui core versions are affected?
What version fixes CVE-2020-5241?
Is matestack-ui-core affected?
What is the CVSS score of CVE-2020-5241?
What CWE is associated with CVE-2020-5241?
How can I check RubyGems dependencies for CVE-2020-5241?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3jqw-vv45-mjhh",
"modified" : "2023-05-22T18:25:18Z",
"published" : "2020-02-12T23:37:46Z",
"aliases" : [ "CVE-2020-5241" ],
"summary" : "XSS/Script injection vulnerability in matestack",
"details" : "matestack-ui-core (RubyGem) before 0.7.4 is vulnerable to XSS/Script injection.\n\nThis vulnerability is patched in version 0.7.4.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "matestack-ui-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/matestack/matestack-ui-core/security/advisories/GHSA-3jqw-vv45-mjhh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-5241"
}, {
"type" : "WEB",
"url" : "https://github.com/matestack/matestack-ui-core/commit/5c61571739e860db9ca578fe09ab4733878cb0fc"
}, {
"type" : "WEB",
"url" : "https://github.com/matestack/matestack-ui-core/commit/e96915cf20c4fa0571df7fa21e9b09a69be19107"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/matestack/matestack-ui-core"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/matestack-ui-core/CVE-2020-5241.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-80" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-02-12T23:37:29Z",
"nvd_published_at" : null
}
}