Vulnerabilities in pkg:npm/@berslucas/liljs
PACKAGEGHSA-c53x-wwx2-pg96 is a MODERATE (CVSS 6.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting @berslucas/liljs libraries in the npm ecosystem. The issue involves cross-site scripting in @berslucas/liljs. Remediation is available by upgrading affected packages to version 1.0.2.
pkg:npm/@berslucas/liljs
Vulnerability advisories affecting package pkg:npm/@berslucas/liljs. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-c53x-wwx2-pg96 | - | MODERATE | Cross-Site Scripting in @berslucas/liljs |
GHSA-c53x-wwx2-pg96 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).
How to Fix GHSA-c53x-wwx2-pg96
To remediate this vulnerability, upgrade all affected @berslucas/liljs 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 @berslucas/liljs@1.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @berslucas/liljs
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-c53x-wwx2-pg96, inspect your project dependencies using npm:
npm ls @berslucas/liljs
Analyze the terminal output to locate any version of @berslucas/liljs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.2), your application is affected.
Note: The npm ls @berslucas/liljs 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 @berslucas/liljs, 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-c53x-wwx2-pg96 Affected @berslucas/liljs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@berslucas/liljs
|
npm |
< 1.0.2
|
1.0.2
|
References
Frequently Asked Questions
What is GHSA-c53x-wwx2-pg96?
Which @berslucas/liljs versions are affected?
What version fixes GHSA-c53x-wwx2-pg96?
Is @berslucas/liljs affected?
What is the CVSS score of GHSA-c53x-wwx2-pg96?
What CWE is associated with GHSA-c53x-wwx2-pg96?
How can I check npm dependencies for GHSA-c53x-wwx2-pg96?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c53x-wwx2-pg96",
"modified" : "2021-09-28T17:27:43Z",
"published" : "2020-09-03T17:03:58Z",
"aliases" : [ ],
"summary" : "Cross-Site Scripting in @berslucas/liljs",
"details" : "Versions of `@berslucas/liljs` prior to 1.0.2 are vulnerable to Cross-Site Scripting (XSS). The package uses the unsafe `innerHTML` function without sanitizing input, which may allow attackers to execute arbitrary JavaScript on the victim's browser.\n\n\n## Recommendation\n\nUpgrade to version 1.0.2 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@berslucas/liljs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/bersLucas/liljs/pull/7"
}, {
"type" : "WEB",
"url" : "https://github.com/bersLucas/liljs/commit/779c0dcd8aba434a1c94db7d1d2d990a629f9a6c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bersLucas/liljs"
}, {
"type" : "WEB",
"url" : "https://github.com/bersLucas/liljs/releases/tag/1.0.2"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-BERSLUCASLILJS-450217"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/1016"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:44:14Z",
"nvd_published_at" : null
}
}