Replies: 3 comments
-
|
You are referring to another plugin, the one #5548 never had this feature, but worth review the proposal, I'll change the type of the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yeah, sorry about that, meant it for the plugin page not this one, wasn't thinking when I went to the page. Sorry about that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Description
The
mapOSVSeveritymethod incve-checker.jscallsparseFloat(severity.score)expecting a numeric CVSS base score, but the OSV API returns a CVSS vector string (e.g.,CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).parseFloat()returnsNaNon this input, so no severity threshold is ever matched and every CVE falls through to the default return value ofmedium.This means severity-based filtering is effectively broken — configuring
severity: [high, critical]will never block anything, because all CVEs are classified asmediumregardless of their actual severity.Steps to Reproduce
severity: [high, critical]lodash@4.17.20which has GHSA-35jh-r3h4-6jhm rated HIGH with CVSS 7.2)mediumto the severity list causes all CVEs to be caught, confirming everything maps tomediumRoot Cause
In
build/lib/cve-checker.js, themapOSVSeveritymethod:The OSV API returns:
{"type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"}Suggested Fix
Either:
cvssor@turingpointde/cvss.js)database_specific.severityfrom the OSV response as a secondary source (values:LOW,MODERATE,HIGH,CRITICAL)database_specific.severityEnvironment
Version
6.x (Stable)
Version details
6.5.2
Output server log info
Node.js Version
22.x.x (Maintenance)
Package manager
npm
Operating system
linux
Using reverse proxy
Relevant log output
Have I checked other issues?
Beta Was this translation helpful? Give feedback.
All reactions