SCA: security update for @github/paste-markdown (GHSA-gpfj-4j6g-c4w9)

medium Tenable Self-Hosted Container Security Plugin ID 415231

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- @github/paste-markdown is an npm package for pasting markdown objects. A self Cross-Site Scripting
vulnerability exists in the @github/paste-markdown before version 0.3.4. If the clipboard data contains
the string `<table>`, a **div** is dynamically created, and the clipboard content is copied into its
**innerHTML** property without any sanitization, resulting in improper execution of JavaScript in the
browser of the victim (the user who pasted the code). Users directed to copy text from a malicious website
and paste it into pages that utilize this library are affected. This is fixed in version 0.3.4. Refer the
to the referenced GitHub Advisory for more details including an example exploit. (CVE-2021-37700)

See Also

https://github.com/advisories/GHSA-gpfj-4j6g-c4w9

Plugin Details

Severity: Medium

ID: 415231

Version: Revision 1.5

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 8.67

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2021-37700

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/12/2021

Vulnerability Publication Date: 8/12/2021

Reference Information

CVE: CVE-2021-37700

cwe: CWE-79