github OWASP/cve-lite-cli v1.43.0
v1.43.0 - JavaScript and Python in one scan

one hour ago

Upgrade note. Five changes can affect an existing setup.

  • Every finding in --json output now carries an ecosystem field (npm or pypi). Multi-folder JSON also gains units and notes when Python requirements are scanned.
  • --python ratchet baselines are written to .cve-lite/baseline-pypi.json, including on Python-only projects. Rename an existing Python baseline from baseline.json to keep it. JavaScript baselines are unchanged.
  • --python on a project that also has JavaScript lockfiles now scans both in one run instead of refusing. The JavaScript findings and fix commands match a run without --python, and so does the exit code while the Python scan is complete. Under --incomplete-policy error, a Python gap (an unpinned line, or a -r/-c include that could not be read) makes the combined run exit 3 where a run without --python exits 0.
  • A single-folder --prod-only scan whose lockfile holds only dev dependencies now exits 0 with "--prod-only filtered out all dev dependencies", instead of exiting 3 as an empty scan.
  • In Yarn workspaces several fix commands change, and the count of findings covered by a direct fix can go down, because a finding that is also reached transitively is no longer counted as covered by the direct fix alone.

Added

  • EXPERIMENTAL: --python scans JavaScript and Python together in one run and one report. Python findings still never affect the exit code. --check-overrides, --check-maintenance, --check-licenses, --usage, --only-used, --offline and --offline-db are now accepted with --python: they run on the JavaScript part and the report says they were not run for Python, and offline Python packages are reported unscanned. --fix, --create-pr, --sbom and --cdx are still refused with --python.
  • EXPERIMENTAL: --python finds every pinned requirements file in the project (any *requirements*.txt, constraints*.txt, and .txt files under a requirements/ folder at any depth) and follows -r and -c includes inside the project the way pip reads them. Includes that are URLs, missing, unreadable or outside the project mark the scan partial, include cycles are reported, and a pin spelled two ways across files counts once.

Changed

  • Contributors can claim an issue they opened with /assign-me, under the same rules as any other claim, and the pull request check accepts only the issue's assignee.
  • A daily sweep reminds and then closes inactive pull requests and unanswered pending-response items, skipping exempt ones. The rules are in CONTRIBUTING.

Fixed

  • EXPERIMENTAL --python: a PyPI upgrade target is checked against every advisory for the package, not only those affecting the installed version, so a target still inside another advisory's affected window is no longer offered. When the full advisory set cannot be loaded no target is given, with a note to re-run online or review the advisories.
  • EXPERIMENTAL --python: packages are matched by their normalised name, so Pillow and pillow count once while different versions stay separate. A bare list of system packages found under a requirements/ folder whose path names a system package source (apt, ubuntu, brew and similar) is set aside with a note instead of marking the scan partial.
  • Yarn workspaces: workspace globs resolve, direct fixes are scoped to the workspaces that declare the package with the right -D, -O or -W flag, and cases Yarn would reject (a catalog: declaration tied to several installed versions, a Berry package that is also a peer dependency, a package declared from both registry and local sources) get manual guidance instead of a command.
  • Within-range advice in JSON, HTML, SARIF and the compact Fix: line names the refresh command for the project's package manager, for example npm update devalue, instead of a generic install.
  • --sbom (or --cdx) and --report can be used together in one run, and a --ratchet run now writes its HTML report too.
  • cve-lite overrides --json --output <dir|file|-> writes where it is pointed; --output - gives clean JSON on standard output, and --output without --json is refused.
  • Notes saved into JSON and SARIF no longer carry an absolute cd '/path' && ... recovery command.
  • An interrupted advisory database sync (Ctrl+C or SIGTERM) removes its partial staging directory instead of leaving it behind.

Validation

  • npm test
  • npm run build

Contributors

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

NewReleases is sending notifications on new releases.