GHSA-gm68-572p-q28r: @vendure/admin ui plugin Cross-Site Scripting Vulnerability

MODERATE
CWE-79
Published
Advisory Summary

GHSA-gm68-572p-q28r is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @vendure/admin ui plugin libraries in the npm ecosystem. The issue involves @vendure/admin-ui-plugin authenticated cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 2.0.3.

GHSA-gm68-572p-q28r at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gm68-572p-q28r
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product @vendure/admin ui plugin
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-gm68-572p-q28r

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

@vendure/admin-ui-plugin fixed: 2.0.3
npm install @vendure/admin-ui-plugin@2.0.3
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 @vendure/admin-ui-plugin

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-gm68-572p-q28r, inspect your project dependencies using npm:

npm ls @vendure/admin-ui-plugin

Analyze the terminal output to locate any version of @vendure/admin ui plugin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.3), your application is affected.

Note: The npm ls @vendure/admin-ui-plugin 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In @vendure/admin ui plugin, 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

### Impact Vendure provides an authorization system with different levels of privileges. For example, an administrator cannot create another administrator. In the admin UI, there are a couple of places with description inputs, such as inventory/collection catalog, shipping methods, promotions, and more. While the WYSIWYG editor allows limited customization, altering the request data (not in the ui) saves and returns arbitrary HTML with no sanitization. Causing an XSS when viewing the page. The impact of this XSS is privilege escalation. A user that can write any type of description can trigger the attack. Then any other user that visits the vulnerable page is prone to arbitrary Javascript code execution, giving the attacker ability to execute actions on behalf of this user. ### Patches in progress ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ ### References _Are there any links users can visit to find out more?_

GHSA-gm68-572p-q28r Affected @vendure/admin ui plugin Versions

1 component(s)
Fixed Versions:
2.0.3
Product / Package Ecosystem Affected Versions Fixed Version
@vendure/admin-ui-plugin
npm
< 2.0.3
2.0.3

References

Frequently Asked Questions

What is GHSA-gm68-572p-q28r?
GHSA-gm68-572p-q28r is a security vulnerability in @vendure/admin ui plugin involving @vendure/admin-ui-plugin authenticated Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which @vendure/admin ui plugin versions are affected?
Affected versions include releases prior to 2.0.3 across affected packages: @vendure/admin-ui-plugin.
What version fixes GHSA-gm68-572p-q28r?
Upgrading to 2.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @vendure/admin-ui-plugin affected?
Yes, @vendure/admin-ui-plugin is affected in releases prior to 2.0.3. Upgrade your dependency to 2.0.3 or later.
What CWE is associated with GHSA-gm68-572p-q28r?
GHSA-gm68-572p-q28r is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for GHSA-gm68-572p-q28r?
Run the dependency tree command: 'npm ls @vendure/admin-ui-plugin'. 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-gm68-572p-q28r",
  "modified" : "2023-07-06T15:30:51Z",
  "published" : "2023-07-06T15:30:51Z",
  "aliases" : [ ],
  "summary" : "@vendure/admin-ui-plugin authenticated Cross-site Scripting vulnerability",
  "details" : "### Impact\nVendure provides an authorization system with different levels of privileges. For example, an administrator cannot create another administrator.\n\nIn the admin UI, there are a couple of places with description inputs, such as inventory/collection catalog, shipping methods, promotions, and more.\n\nWhile the WYSIWYG editor allows limited customization, altering the request data (not in the ui) saves and returns arbitrary HTML with no sanitization. Causing an XSS when viewing the page.\n\nThe impact of this XSS is privilege escalation. A user that can write any type of description can trigger the attack. Then any other user that visits the vulnerable page is prone to arbitrary Javascript code execution, giving the attacker ability to execute actions on behalf of this user.\n\n### Patches\nin progress\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n### References\n_Are there any links users can visit to find out more?_\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@vendure/admin-ui-plugin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vendure-ecommerce/vendure/security/advisories/GHSA-gm68-572p-q28r"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vendure-ecommerce/vendure/commit/0cdc92b241e6fd4017ddfc9fbdca189fc7c1ada0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vendure-ecommerce/vendure"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vendure-ecommerce/vendure/blob/master/CHANGELOG.md#203-2023-07-04"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-06T15:30:51Z",
    "nvd_published_at" : null
  }
}