You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('returns the correct environmental score for vector without modifiers',function(){varsomeVector=parseVector('CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L/CR:H/IR:H/AR:H');expect(scores.getBase(someVector,{env: true})).to.equal(7.4);});
The temporary workaround that I used was to always pass the Modified Scope (MS) metric to the vector string and make sure that it has the same value as the Scope (S) metric. The following test passes:
it('returns the correct environmental score for vector without modifiers',function(){varsomeVector=parseVector('CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L/CR:H/IR:H/AR:H/MS:C');expect(scores.getBase(someVector,{env: true})).to.equal(7.4);});
This was tested against version 1.0.5.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
To reproduce, run the following test:
This test will fail as
getBase
returns 6.3 instead of 7.4. As can be seen on FIRST.org, 7.4 should be the environmental score: https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L/CR:H/IR:H/AR:H.Workaround for v1.0.5
The temporary workaround that I used was to always pass the Modified Scope (MS) metric to the vector string and make sure that it has the same value as the Scope (S) metric. The following test passes:
This was tested against version 1.0.5.
The text was updated successfully, but these errors were encountered: