CVE-2014-3743: Content Injection Vulnerabilities in marked

marked Updated 02 Oct 2025

Summary

31/08/2020
Yes i
Moderate
6.1

CVE-2014-3743: Multiple Content Injection Vulnerabilities in marked. Affects marked versions < 0.3.1. Fixed in 0.3.1. How to fix ↓

Also tracked for

The same CVE-2014-3743 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

marked is an npm package used for parsing and rendering Markdown content. It provides a simple and efficient way to convert Markdown syntax into HTML. However, versions 0.3.0 and earlier of marked are susceptible to two cross-site scripting (XSS) vulnerabilities, even when the sanitize option is enabled. These vulnerabilities can be exploited through GFM Codeblocks and JavaScript URLs.

Vulnerability Detail

The identified vulnerabilities in marked can lead to content injection attacks, allowing malicious actors to execute arbitrary JavaScript code in the context of a user's browser. This can result in various security risks, including session hijacking, data theft, and unauthorized actions on behalf of the user. The vulnerabilities affect versions 0.3.0 and earlier of marked, and they have a CVSS score of 6.1 (Moderate). The CWE ID associated with these vulnerabilities is CWE-79.

How To Fix

Minimum fixed version

0.3.1

This is the first release that contains the fix.

npm install marked@0.3.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

In conclusion, versions 0.3.0 and earlier of marked are vulnerable to content injection attacks through GFM Codeblocks and JavaScript URLs. Upgrading to version 0.3.1 or later is crucial to address these vulnerabilities and ensure safer rendering of Markdown content. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for marked →

Share this vulnerability

FAQ

marked is an npm package used for parsing and rendering Markdown content. It simplifies the conversion of Markdown syntax into HTML.

Versions 0.3.0 and earlier of marked are affected by the content injection vulnerabilities.

The vulnerabilities allow for cross-site scripting (XSS) attacks, which can lead to session hijacking, data theft, and unauthorized actions on behalf of the user.

To mitigate the risk, it is recommended to upgrade marked to version 0.3.1 or later, which includes fixes for the content injection vulnerabilities.

Yes, the CVSS score for these vulnerabilities is 6.1 (Moderate).

Related vulnerabilities

Recent vulnerabilities recorded for marked.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0.3.1

This is the first release that contains the fix.

npm install marked@0.3.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.