Vulnerabilities in pkg:npm/@vendure/admin-ui-plugin
PACKAGEGHSA-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.
pkg:npm/@vendure/admin-ui-plugin
Vulnerability advisories affecting package pkg:npm/@vendure/admin-ui-plugin. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gm68-572p-q28r | - | MODERATE | @vendure/admin-ui-plugin authenticated Cross-site Scripting vulnerability |
GHSA-gm68-572p-q28r at a Glance
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.
npm install @vendure/admin-ui-plugin@2.0.3
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
GHSA-gm68-572p-q28r Affected @vendure/admin ui plugin Versions
1 component(s)| 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?
Which @vendure/admin ui plugin versions are affected?
What version fixes GHSA-gm68-572p-q28r?
Is @vendure/admin-ui-plugin affected?
What CWE is associated with GHSA-gm68-572p-q28r?
How can I check npm dependencies for GHSA-gm68-572p-q28r?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}