CVE-2014-10065: Remarkable Content Injection Vulnerability
HIGHCVE-2014-10065 is a HIGH content injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Remarkable libraries in the npm ecosystem. The issue involves content injection in remarkable. Remediation is available by upgrading affected packages to version 1.4.1.
CVE-2014-10065 at a Glance
How to Fix CVE-2014-10065
To remediate this vulnerability, upgrade all affected Remarkable dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install remarkable@1.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls remarkable
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2014-10065, inspect your project dependencies using npm:
npm ls remarkable
Analyze the terminal output to locate any version of Remarkable in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.1), your application is affected.
Note: The npm ls remarkable 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 CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Remarkable, 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
CVE-2014-10065 Affected Remarkable Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
remarkable
|
npm |
< 1.4.1
|
1.4.1
|
References
Frequently Asked Questions
What is CVE-2014-10065?
Which Remarkable versions are affected?
What version fixes CVE-2014-10065?
Is remarkable affected?
What CWE is associated with CVE-2014-10065?
How can I check npm dependencies for CVE-2014-10065?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f9vc-q3hh-qhfv",
"modified" : "2020-08-31T18:08:29Z",
"published" : "2020-08-31T22:56:00Z",
"aliases" : [ "CVE-2014-10065" ],
"summary" : "Content Injection in remarkable",
"details" : "Versions 1.4.0 and earlier of `remarkable` are affected by a cross-site scripting vulnerability. This occurs because vulnerable versions of `remarkable` did not properly whitelist link protocols, and consequently allowed `javascript:` to be used. \n\n\n### Proof of Concept\n\nMarkdown Source:\n```\n[link](<javascript:alert(1)>)\n```\n\nRendered HTML:\n```\n<a href=\"javascript:alert(1)\">link</a>\n```\n\n\n## Recommendation\n\nUpdate to version 1.4.1 or later",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "remarkable"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-10065"
}, {
"type" : "WEB",
"url" : "https://github.com/jonschlinkert/remarkable/issues/97"
}, {
"type" : "WEB",
"url" : "https://github.com/jonschlinkert/remarkable/commit/d54ed887f4997221cd7cb9790e953a83c504de36"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/30"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:08:29Z",
"nvd_published_at" : null
}
}