Vulnerabilities in pkg:gem/matestack-ui-core

PACKAGE
Advisory Identifier: GHSA-3jqw-vv45-mjhh
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/matestack-ui-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/matestack-ui-core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3jqw-vv45-mjhh CVE-2020-5241 HIGH XSS/Script injection vulnerability in matestack

CVE-2020-5241 at a Glance

CVE Identifier CVE-2020-5241
GHSA Identifier GHSA-3jqw-vv45-mjhh
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
Affected Product Matestack ui core
Package Ecosystem RubyGems
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (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.

matestack-ui-core fixed: 0.7.4
Upgrade matestack-ui-core to 0.7.4
Verify Direct and Transitive Dependencies

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

matestack-ui-core (RubyGem) before 0.7.4 is vulnerable to XSS/Script injection. This vulnerability is patched in version 0.7.4.

CVE-2020-5241 Affected Matestack ui core Versions

1 component(s)
Fixed Versions:
0.7.4
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?
CVE-2020-5241 is a security vulnerability in Matestack ui core involving XSS/Script injection vulnerability in matestack under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS).
Which Matestack ui core versions are affected?
Affected versions include releases prior to 0.7.4 across affected packages: matestack-ui-core.
What version fixes CVE-2020-5241?
Upgrading to 0.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is matestack-ui-core affected?
Yes, matestack-ui-core is affected in releases prior to 0.7.4. Upgrade your dependency to 0.7.4 or later.
What is the CVSS score of CVE-2020-5241?
CVE-2020-5241 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2020-5241?
CVE-2020-5241 is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) (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.).
How can I check RubyGems dependencies for CVE-2020-5241?
Run the dependency tree command: 'inspect dependencies for matestack-ui-core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}