- Newest
- Most votes
- Most comments
Thank you for bringing this issue to our attention. It appears that you're experiencing some discrepancies in the way Amazon Inspector is scanning and reporting vulnerabilities for JavaScript packages, specifically the 'word-wrap' package, after a recent update.
Based on the information you've provided, it seems that Inspector version 1.6 is not correctly identifying the resolved version of the 'word-wrap' package from your yarn.lock file. This could indeed lead to false positive reports of vulnerabilities for packages that have actually been updated.
The issue appears to stem from how the Amazon Inspector SBOM Generator handles unresolved or range-based version references in package manifests like package.json or yarn.lock. The SBOM Generator does not resolve version ranges or perform registry lookups, which can lead to situations where it reports an older, potentially vulnerable version instead of the actually installed, updated version.
For accurate vulnerability scanning and SBOM generation, it's recommended to use resolved, semantic version identifiers in your project dependencies. However, in your case, it seems that even though you have the resolved version in your yarn.lock file, the latest Inspector version is not picking it up correctly.
This is likely an unintended consequence of recent changes to the Inspector, and it's reasonable to expect that AWS will address this issue. While I can't provide a specific timeline for a fix, AWS typically responds quickly to such issues, especially when they impact security assessments and reporting.
In the meantime, you might consider:
- Documenting these false positives and their actual resolved versions for your monthly reports.
- If possible, explicitly specifying the updated versions in your package.json file as well as yarn.lock.
- Reaching out to AWS support to report this specific issue, as they may be able to provide more immediate guidance or workarounds.
Rest assured that AWS is continually working to improve their services, and addressing false positives in security scans is typically a high priority. Keep an eye out for updates to Amazon Inspector, as a fix for this issue is likely to be included in a future release.
Sources
Handling unresolved or non-standard version references in the Amazon Inspector SBOM Generator - Amazon Inspector
Relevant content
asked 2 years ago
asked 2 years ago
- AWS OFFICIALUpdated 7 months ago
