{"id":"GHSA-j8x7-qcw4-xx85","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.","aliases":["CVE-2022-25847"],"modified":"2025-04-01T22:56:21Z","published":"2023-01-26T21:30:25Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-01-30T18:17:35Z","nvd_published_at":"2023-01-26T21:15:00Z","cwe_ids":["CWE-79"]},"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"}],"affected":[{"package":{"name":"serve-lite","ecosystem":"npm","purl":"pkg:npm/serve-lite"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"}]}