{"id":"CVE-2022-25847","aliases":["CVE-2022-25847","GHSA-j8x7-qcw4-xx85"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting (XSS) in serve-lite","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Todas las versiones del paquete server-lite son vulnerables a Cross-site Scripting (XSS) porque cuando detecta una solicitud a un directorio, muestra una lista de archivos de todo su contenido con enlaces que incluyen los nombres de archivos reales sin ningún tipo de sanitización o codificación de salida.","source":"nvd"}],"published":"2023-01-25T05:00:01.656Z","modified":"2026-06-17T04:34:22.937Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"serve-lite","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.1.0"}],"ecosystem":"npm","package":"serve-lite","purl":"pkg:npm/serve-lite","source":"ghsa"},{"ranges":[],"vendor":"serve-lite_project","product":"serve-lite","cpe":"cpe:2.3:a:serve-lite_project:serve-lite:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-SERVELITE-3149915","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/lirantal/52debd25284726fcc2eaed9c7512975c","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25847","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/beenotung/serve-lite","tags":["package"],"sources":["ghsa"]}],"credits":["Liran Tal"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-01T14:55:01.971Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25847","url":"https://www.cve.org/CVERecord?id=CVE-2022-25847","licence":"CVE Terms of Use","modified":"2025-04-01T14:55:17.127Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j8x7-qcw4-xx85","url":"https://github.com/advisories/GHSA-j8x7-qcw4-xx85","licence":"CC-BY-4.0","modified":"2025-04-01T22:56:21.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25847","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25847","licence":"Public domain","modified":"2026-06-17T04:34:22.937Z"}],"updatedAt":"2026-11-25T22:58:18.327Z","epss":{"score":0.00622,"percentile":0.51178,"date":"2026-12-02T12:00:21.000Z"}}