github google/osv-scanner v2.7.1

one hour ago

v2.7.1

Features:

  • Feature #3158 Prefer ecosystem priority (such as Ubuntu severity) in table output when available (resolves #1275).
  • Feature #3178 Add a "Fix available" filter checkbox to HTML reports (fixes #3016).
  • Feature #3173 Warn about unused or expired [[PackageOverrides]] configuration entries (resolves #3160).
  • Feature #3184 Support EffectiveUntil in [[IgnoredVulns]] configuration entries and deprecate IgnoreUntil.
  • Feature #3179 Improve GitHub Actions annotation escaping and include line numbers so annotations appear directly on files.
  • Feature #3159 Support mapping additional ecosystems (Bitnami, GitHub Actions, Linux, OSS-Fuzz) to PURL types in osvscanner.json (osv/osvscannerjson) extractor.
  • Dependency scanning & lockfile improvements via osv-scalibr:
  • New extractors and plugin support via osv-scalibr:

Fixes:

  • Bug #3216 Scan npm registry packages with omitted resolved URLs while skipping local workspace and file:/link: packages (fixes #2881, #3177, google/osv-scalibr#2560).
  • Bug #3214 Reject malformed ar archive member sizes instead of panicking during --call-analysis=rust scans (fixes #3202).
  • Bug #3251 Pass extraction stats to ScannerActions.StatsCollector when provided.
  • Bug #3114 Group connected vulnerabilities transitively regardless of the order they are encountered (resolves #3107).
  • Bug #3147 Stop treating upstream identifiers as aliases when grouping vulnerabilities.
  • Bug #3199 Sort package vulnerabilities deterministically by ID in output results.
  • Bug #3155 Print license violations for OS sources without vulnerabilities or deprecations.
  • Bug #3156 Don't display "No fix available" in table output for packages with license violations and no vulnerabilities.
  • Bug #3169 Restrict the HTML report server (--serve) to bind to the loopback interface (127.0.0.1) by default (fixes #3165).
  • Bug #3213 Use the correct IgnoredVulns key in MCP configuration instructions (resolves #3209).
  • Bug #3241 Clarify that --all-packages applies to JSON and SBOM output formats (fixes #3220).
  • Bug #3252 Reject --apply-top=0 in osv-scanner fix instead of applying all patches (resolves #3234).
  • Bug #3246 Update the osv-scanner-docker pre-commit hook image to v2.7.1 (resolves #3225).
  • Fixes via osv-scalibr:
    • Normalize NuGet and crates.io package names before comparing in vulnmatch/osvlocal (google/osv-scalibr#2556).
    • Validate OSV database zip archives before caching and avoid reading the zip archive twice in vulnmatch/osvlocal (google/osv-scalibr#2486).
    • Continue matching packages across remaining ecosystems in vulnmatch/osvlocal when an offline OSV database fails to load for one ecosystem, and return all database load errors joined together (google/osv-scalibr#2544).
    • Skip @patch: entries in javascript/yarnlock so patched packages are not reported twice (google/osv-scalibr#2498).
    • Accept string values for maintainers and contributors fields in javascript/packagejson without skipping packages and guard against nil person entries (google/osv-scalibr#2500).
    • Read backslash-continued lines iteratively in python/requirements (google/osv-scalibr#2457).
    • Confine project .npmrc reads with os.OpenRoot, prevent project .npmrc files from overriding userconfig, globalconfig, or prefix, and avoid expanding environment variables from untrusted .npmrc files (google/osv-scalibr#2536).
    • Migrate DirFS and GetRealPath to os.Root, read containerd, podman, gitrepo, vmdk, and qcow2 inputs via ScanInput.FS, and fix dotnet/pe temporary file cleanup (google/osv-scalibr#2538, google/osv-scalibr#2537, google/osv-scalibr#2532, google/osv-scalibr#2533).
    • Confine archive and filesystem image (ext4, FAT32, NTFS, exFAT, tar) extraction writes with os.Root and bound extracted file sizes in embeddedfs (google/osv-scalibr#2535).

Misc:

  • Update osv-scalibr to v0.5.4-0.20261105012210-c80efcc25cd9 (#3232, #3216, #3185, #3192, #3153).
  • Update Go version to 1.27.3 (#3152).
  • Switch GoReleaser Docker builds to Buildx (dockers_v2) for native multi-arch images and merge GoReleaser Dockerfiles (#3132, #3131).

New Contributors

Full Changelog: v2.7.0...v2.7.1

Don't miss a new osv-scanner release

NewReleases is sending notifications on new releases.