{"id":"CVE-2022-25847","aliases":["EUVD-2023-0493","GHSA-j8x7-qcw4-xx85"],"status":"published","title":"Cross-site Scripting (XSS) in serve-lite","description":"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":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00599,"percentile":0.48967,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2023-01-25T05:00:01Z","modified":"2026-06-17T04:34:22Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"serve-lite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.1.0"}]}]},{"source":"osv","ecosystem":"npm","package":"serve-lite","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.1.0"}]}]}],"products":[{"vendor":"serve-lite_project","product":"serve-lite"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SERVELITE-3149915","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://gist.github.com/lirantal/52debd25284726fcc2eaed9c7512975c","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25847","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-j8x7-qcw4-xx85"},{"url":"https://github.com/beenotung/serve-lite","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-25847","description":"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.\r\r","status":"published","published":"2023-01-25T05:00:01.656Z","modified":"2025-04-01T14:55:17.127Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79","CWE-79"],"updated_at":"2026-11-02T14:34:28.707644Z"}],"euvd":[{"id":"EUVD-2023-0493","description":"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.\r\r","status":"published","published":"2023-01-25T05:00:01Z","modified":"2025-04-01T14:55:17Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:52:45.844316Z"}],"ghsa":[{"id":"GHSA-j8x7-qcw4-xx85","title":"Cross-site Scripting (XSS) in serve-lite","description":"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.","status":"published","published":"2023-01-26T21:30:25Z","modified":"2023-01-30T18:17:38Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:28.424013Z"}],"nvd":[{"id":"CVE-2022-25847","description":"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.\r\r","status":"published","published":"2023-01-26T21:15:30.783Z","modified":"2026-06-17T04:34:22.937Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:35.561816Z"}],"osv":[{"id":"GHSA-j8x7-qcw4-xx85","title":"Cross-site Scripting (XSS) in serve-lite","description":"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.","status":"published","published":"2023-01-26T21:30:25Z","modified":"2025-04-01T22:56:21Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:50.336262Z"}]}}
