GHSA-qfmr-6qvh-49gm: Knockout Cross-Site Scripting Vulnerability

MODERATE
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-qfmr-6qvh-49gm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Knockout
Package Ecosystem npm
Published Date
Last Updated

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.

knockout fixed: 3.5.0
npm install knockout@3.5.0
Verify Direct and Transitive Dependencies

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

**Withdrawn:** Duplicate of GHSA-vcjj-xf2r-mwvc. Knockout, before 3.5.0-beta, has an XSS injection point in attr name binding for browser IE7 and older.

GHSA-qfmr-6qvh-49gm Affected Knockout Versions

1 component(s)
Fixed Versions:
3.5.0
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?
GHSA-qfmr-6qvh-49gm is a security vulnerability in Knockout involving XSS under General Security Weakness.
Which Knockout versions are affected?
Affected versions include releases prior to 3.5.0 across affected packages: knockout.
What version fixes GHSA-qfmr-6qvh-49gm?
Upgrading to 3.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is knockout affected?
Yes, knockout is affected in releases prior to 3.5.0. Upgrade your dependency to 3.5.0 or later.
What CWE is associated with GHSA-qfmr-6qvh-49gm?
GHSA-qfmr-6qvh-49gm is classified under General Security Weakness.
How can I check npm dependencies for GHSA-qfmr-6qvh-49gm?
Run the dependency tree command: 'npm ls knockout'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}