GHSA-j8x7-qcw4-xx85

Suggest an improvement
Source
https://github.com/advisories/GHSA-j8x7-qcw4-xx85
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-j8x7-qcw4-xx85/GHSA-j8x7-qcw4-xx85.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j8x7-qcw4-xx85
Aliases
  • CVE-2022-25847
Published
2023-01-26T21:30:25Z
Modified
2025-04-01T22:56:21Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Cross-site Scripting (XSS) in serve-lite
Details

All versions of the package serve-lite are vulnerable to Cross-site Scripting (XSS) because when it detects a request to a directory, it renders a file listing of all of its contents with links that include the actual file names without any sanitization or output encoding.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2023-01-30T18:17:35Z",
    "nvd_published_at":  "2023-01-26T21:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / serve-lite

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
1.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-j8x7-qcw4-xx85/GHSA-j8x7-qcw4-xx85.json"