GHSA-qfmr-6qvh-49gm: Knockout Cross-Site Scripting Vulnerability
MODERATEGHSA-qfmr-6qvh-49gm is a MODERATE cross-site scripting vulnerability (General Security Weakness) affecting Knockout libraries in the npm ecosystem. The issue involves xss. Remediation is available by upgrading affected packages to version 3.5.0.
GHSA-qfmr-6qvh-49gm at a Glance
How to Fix GHSA-qfmr-6qvh-49gm
To remediate this vulnerability, upgrade all affected Knockout 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 knockout@3.5.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls knockout
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-qfmr-6qvh-49gm, inspect your project dependencies using npm:
npm ls knockout
Analyze the terminal output to locate any version of Knockout in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.5.0), your application is affected.
Note: The npm ls knockout 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 Knockout, 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
GHSA-qfmr-6qvh-49gm Affected Knockout Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
knockout
|
npm |
< 3.5.0
|
3.5.0
|
References
Frequently Asked Questions
What is GHSA-qfmr-6qvh-49gm?
Which Knockout versions are affected?
What version fixes GHSA-qfmr-6qvh-49gm?
Is knockout affected?
What CWE is associated with GHSA-qfmr-6qvh-49gm?
How can I check npm dependencies for GHSA-qfmr-6qvh-49gm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qfmr-6qvh-49gm",
"modified" : "2021-02-25T01:44:38Z",
"published" : "2021-02-25T01:44:38Z",
"withdrawn" : "2021-02-25T01:44:38Z",
"aliases" : [ ],
"summary" : "XSS",
"details" : "**Withdrawn:** Duplicate of GHSA-vcjj-xf2r-mwvc.\n\nKnockout, before 3.5.0-beta, has an XSS injection point in attr name binding for browser IE7 and older.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "knockout"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.5.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/knockout/knockout/issues/1244"
}, {
"type" : "WEB",
"url" : "https://github.com/knockout/knockout/commit/86b06aa8633f9f72b953f512df7471a22689ea14"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-05-22T15:03:20Z",
"nvd_published_at" : null
}
}