CVE-2021-23342

MEDIUMCVSS 6.1/10EPSS 1.66%

Last modified

CVE-2021-23342 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. This affects the package docsify before 4.12.0. It is possible to bypass the remediation done by CVE-2020-7680 and execute malicious JavaScript through the following methods 1) When parsing HTML from remote URLs, the HTML code on the main page is sanitized, but this sanitization is not taking place in the sidebar. EPSS estimates a 1.66% chance of exploitation in the next 30 days.

Description

This affects the package docsify before 4.12.0. It is possible to bypass the remediation done by CVE-2020-7680 and execute malicious JavaScript through the following methods 1) When parsing HTML from remote URLs, the HTML code on the main page is sanitized, but this sanitization is not taking place in the sidebar. 2) The isURL external check can be bypassed by inserting more “////” characters

Metrics

CVSS 3.1
6.1/10

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

EPSS Probability
1.66%

73.6th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DocsifyjsDocsify< 4.12.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-23342?
This affects the package docsify before 4.12.0. It is possible to bypass the remediation done by CVE-2020-7680 and execute malicious JavaScript through the following methods 1) When parsing HTML from remote URLs, the HTML code on the main page is sanitized, but this sanitization is not taking place in the sidebar. 2) The isURL external check can be bypassed by inserting more “////” characters
How severe is CVE-2021-23342?
CVE-2021-23342 has a CVSS score of 6.1/10 (MEDIUM severity). The EPSS model estimates a 1.66% probability of exploitation in the next 30 days.
How do I fix CVE-2021-23342?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-23342?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST