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.
Remediation
References
https://gist.github.com/lirantal/52debd25284726fcc2eaed9c7512975c
https://security.snyk.io/vuln/SNYK-JS-SERVELITE-3149915
Related Vulnerabilities
CVE-2018-16489 Vulnerability in npm package just-extend
CVE-2020-7642 Vulnerability in maven package org.webjars.bowergithub.afarkas:lazysizes
CVE-2021-4040 Vulnerability in maven package org.apache.activemq:artemis-commons
CVE-2020-7647 Vulnerability in maven package io.jooby:jooby
CVE-2020-11002 Vulnerability in maven package io.dropwizard:dropwizard-validation