vulnerablecode icon indicating copy to clipboard operation
vulnerablecode copied to clipboard

Make CVSS vector display faster by pre-calculating values

Open Aryan-SINGH-GIT opened this issue 9 months ago • 0 comments

issue - #2054

The advisory and vulnerability pages were slow because they had to "decode" the raw CVSS string (like CVSS:3.1/AV:N...) every time someone visited the page.

I fixed this by parsing the string once when it's saved to the database and storing the result. Now, the page just reads the ready-to-use data instantly instead of calculating it on the fly.

This change includes:

  • A new database field to store the parsed data.
  • A script to update all existing records.
  • Tests to make sure it works correctly.

Aryan-SINGH-GIT avatar Feb 15 '26 23:02 Aryan-SINGH-GIT