GHSA-8wp3-cp9v-44fm: Marked Cross-Site Scripting Vulnerability

MODERATE
Published
Advisory Summary

GHSA-8wp3-cp9v-44fm is a MODERATE cross-site scripting vulnerability (General Security Weakness) affecting Marked libraries in the npm ecosystem. The issue involves cross-site scripting in marked. Remediation is available by upgrading affected packages to version 0.3.9.

GHSA-8wp3-cp9v-44fm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8wp3-cp9v-44fm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Marked
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-8wp3-cp9v-44fm

To remediate this vulnerability, upgrade all affected Marked dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

marked fixed: 0.3.9
npm install marked@0.3.9
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls marked

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-8wp3-cp9v-44fm, inspect your project dependencies using npm:

npm ls marked

Analyze the terminal output to locate any version of Marked in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.9), your application is affected.

Note: The npm ls marked command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Marked, 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

Versions 0.3.7 and earlier of marked unescape only lowercase while owsers support both lowercase and uppercase x in hexadecimal form of HTML character entity

GHSA-8wp3-cp9v-44fm Affected Marked Versions

1 component(s)
Fixed Versions:
0.3.9
Product / Package Ecosystem Affected Versions Fixed Version
marked
npm
< 0.3.9
0.3.9

References

Frequently Asked Questions

What is GHSA-8wp3-cp9v-44fm?
GHSA-8wp3-cp9v-44fm is a security vulnerability in Marked involving Cross-Site Scripting in marked under General Security Weakness.
Which Marked versions are affected?
Affected versions include releases prior to 0.3.9 across affected packages: marked.
What version fixes GHSA-8wp3-cp9v-44fm?
Upgrading to 0.3.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is marked affected?
Yes, marked is affected in releases prior to 0.3.9. Upgrade your dependency to 0.3.9 or later.
What CWE is associated with GHSA-8wp3-cp9v-44fm?
GHSA-8wp3-cp9v-44fm is classified under General Security Weakness.
How can I check npm dependencies for GHSA-8wp3-cp9v-44fm?
Run the dependency tree command: 'npm ls marked'. 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-8wp3-cp9v-44fm",
  "modified" : "2021-02-25T02:01:15Z",
  "published" : "2021-02-25T02:01:15Z",
  "withdrawn" : "2021-02-25T02:01:15Z",
  "aliases" : [ ],
  "summary" : "Cross-Site Scripting in marked",
  "details" : "Versions 0.3.7 and earlier of marked unescape only lowercase while owsers support both lowercase and uppercase x in hexadecimal form of HTML character entity",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "marked"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/markedjs/marked/issues/925"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/markedjs/marked/commit/6d1901ff71abb83aa32ca9a5ce47471382ea42a9"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-06-05T12:47:45Z",
    "nvd_published_at" : null
  }
}