GHSA-h29r-4vqp-8jxf: Keystone Cross-Site Scripting Vulnerability

MODERATE
Published
Advisory Summary

GHSA-h29r-4vqp-8jxf is a MODERATE cross-site scripting vulnerability (General Security Weakness) affecting Keystone libraries in the npm ecosystem. The issue involves cross-site scripting in keystone. Remediation is available by upgrading affected packages to version 4.0.0.

GHSA-h29r-4vqp-8jxf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h29r-4vqp-8jxf
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Keystone
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-h29r-4vqp-8jxf

To remediate this vulnerability, upgrade all affected Keystone dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

keystone fixed: 4.0.0
npm install keystone@4.0.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 keystone

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-h29r-4vqp-8jxf, inspect your project dependencies using npm:

npm ls keystone

Analyze the terminal output to locate any version of Keystone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.0), your application is affected.

Note: The npm ls keystone 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 Keystone, 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-7qcx-jmrc-h2rr

GHSA-h29r-4vqp-8jxf Affected Keystone Versions

1 component(s)
Fixed Versions:
4.0.0
Product / Package Ecosystem Affected Versions Fixed Version
keystone
npm
< 4.0.0
4.0.0

References

Frequently Asked Questions

What is GHSA-h29r-4vqp-8jxf?
GHSA-h29r-4vqp-8jxf is a security vulnerability in Keystone involving Cross-Site Scripting in keystone under General Security Weakness.
Which Keystone versions are affected?
Affected versions include releases prior to 4.0.0 across affected packages: keystone.
What version fixes GHSA-h29r-4vqp-8jxf?
Upgrading to 4.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is keystone affected?
Yes, keystone is affected in releases prior to 4.0.0. Upgrade your dependency to 4.0.0 or later.
What CWE is associated with GHSA-h29r-4vqp-8jxf?
GHSA-h29r-4vqp-8jxf is classified under General Security Weakness.
How can I check npm dependencies for GHSA-h29r-4vqp-8jxf?
Run the dependency tree command: 'npm ls keystone'. 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-h29r-4vqp-8jxf",
  "modified" : "2020-08-20T17:21:46Z",
  "published" : "2020-08-20T17:21:46Z",
  "withdrawn" : "2020-08-20T17:21:46Z",
  "aliases" : [ ],
  "summary" : "Cross-Site Scripting in keystone",
  "details" : "Withdrawn: Duplicate of GHSA-7qcx-jmrc-h2rr",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "keystone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/keystonejs/keystone/pull/4478"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/keystonejs/keystone/commit/8ecb80960ffd2ae2f241b0bbb62367821a79ff63"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/980"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-08-01T22:03:28Z",
    "nvd_published_at" : null
  }
}