github OWASP/cve-lite-cli v1.41.5
v1.41.5 - Usage scanner no longer stalls on crafted source files

latest release: v1
one hour ago

Upgrade note. This release contains one security fix and the import-scanner change it is built on, nothing else. One behaviour change: import-like text inside an ordinary string is no longer counted as an import.

Security

  • The usage scanner behind --usage, --only-used and the phantom-dependency checks no longer slows down sharply on crafted source files. A file with a long run of spaces or repeated import keywords could take seconds per file, growing four times longer each time the input doubled; it now takes milliseconds and grows in step with the input (GHSA-m79h-qgvh-vjmc).

Fixed

  • The usage scanner recognises compact imports such as import{x}from'pkg', export{x}from'pkg' and import'pkg', and no longer counts import-like text inside strings, templates or JSX text, which could hide a real import.

Validation

  • npm test
  • npm run build

Contributors

Don't miss a new cve-lite-cli release

NewReleases is sending notifications on new releases.