Comments (2)
@prabhu I think the version_used is None due to the parse_purl method in vdb.utils. In trying to replicate this issue, I am noticing that if the purl is used to set fields and it is malformed or incomplete, there is no default value to fall back on.
Under normal circumstances, a dictionary with a length of 6 is returned from parse_purl. In this example, the first attempt to set field values fails, and we parse the string again but only set namespace.
Example:
input purl string: 'pkg:swid/{AppUp.IntelGraphicsExperience_1.100.5185.0_x64__8j3eq9eme6ctt?ms-resource-//AppUp.IntelGraphicsExperience/Resources/System_Item_Title_IntelGraphicsControlPanel'
returns: {'namespace': 'Resources'}
when it should also have entries for type, name, version, qualifiers, subpath.
result: The program subsequently errors out when name is assigned a value of None and we then try to call name.lower(). Since we wouldn't call lower() on version,, we can end up with None for versions in vex files as the program will not error out.
I'll make changes to set a default value of "" to avoid this eventuality, and see if there are any improvements I can make to on reparsing the data.
from dep-scan.
from dep-scan.
Related Issues (20)
- Bug: cvss score is appearing as 0 from certain CVEs HOT 3
- Bug: cvss score for pypi vulnerabilities are incorrect HOT 1
- Bug: Pypi misses
- Feature: nu plugin
- Feature: pyproject.nix poc
- Feature: Support for nix packages
- [v6] Support for cpe based searches
- [v6] Prefer xz vdb over rafs
- Feature: VDB update frequency information HOT 2
- False-Positive: CVE-2020-14343 HOT 9
- False-Positive: CVE-2021-39913 HOT 7
- [FN] CVE-2023-5590 is not reported for [email protected] HOT 1
- False-Positive: I raised the topic on discord. I compared the DT, Depscan, and Grype analyzers. The results are presented in the table. I think it will be useful for correcting the quality of the analysis. HOT 1
- [dotnet] Runtime components naming
- [cdxgen 10.3.x] Breaking changes in cdxgen for go and npm HOT 1
- cargo:http is yielding a lot of false positives
- Bug: Reachability scan fails HOT 3
- [risk-audit] Detect use of Trusted publisher
- [container] almalinux 9.3 builds are broken
- [v6] choices for reachability analysis
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dep-scan.