{ "schema_version": "1.4.0", "id": "GHSA-j8x7-qcw4-xx85", "modified": "2025-04-01T22:56:21Z", "published": "2023-01-26T21:30:25Z", "aliases": [ "CVE-2022-25847" ], "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.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N" } ], "affected": [ { "package": { "ecosystem": "npm", "name": "serve-lite" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "last_affected": "1.1.0" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25847" }, { "type": "WEB", "url": "https://gist.github.com/lirantal/52debd25284726fcc2eaed9c7512975c" }, { "type": "PACKAGE", "url": "https://github.com/beenotung/serve-lite" }, { "type": "WEB", "url": "https://security.snyk.io/vuln/SNYK-JS-SERVELITE-3149915" } ], "database_specific": { "cwe_ids": [ "CWE-79" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2023-01-30T18:17:35Z", "nvd_published_at": "2023-01-26T21:15:00Z" } }