Extract and handle CVSS scores from multiple vulnerability data sources (NVD, GHSA, RedHat) with proper fallback priority.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# CVSS Score Extraction
## Overview
CVSS (Common Vulnerability Scoring System) scores quantify vulnerability severity from 0-10. Different sources may provide different scores, requiring intelligent fallback handling.
## Score Sources
### NVD (National Vulnerability Database)
- Official US government vulnerability database
- Provides CVSS v3.0 and v3.1 scores
- Most comprehensive coverage
- URL pattern: `https://nvd.nist.gov/vuln/detail/{CVE_ID}`
### GHSA (GitHub Security Advisory)
- GitHub's vulnerability advisory database
- Integrated with npm ecosystem
- URL pattern: `https://github.com/advisories/{GHSA_ID}`
### RedHat Security
- RedHat-specific vulnerability data
- Often has additional context
- URL pattern: `https://access.redhat.com/security/cve/{CVE_ID}`
## Source Priority
For optimal results, use this priority:
1. NVD CVSS v3.1 (most reliable, modern scoring)
2. NVD CVSS v3.0 (fallback, still reliable)
3. GHSA CVSS (GitHub advisory ecosystem)
4. RedHat CVSS (distribution-specific)
5. N/A (if no score available)
## Data Extraction Pattern
```python
def extract_cvss_score(vuln_data):
"""
Extract CVSS score with source priority fallback.
…
The line at the top of this page pins the label git:20260424.d50cf5a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_jgvkzkner3dtwtee
GET https://markdownregistry.com/api/v1/resolve?ref=cxcscmu/skilllearnbench/cvss-score-extraction
GET https://markdownregistry.com/api/v1/blob/720612a1b278be7788a645448b4e4dd220a27334d4ddcd9f0db0ddb1a97a8118
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
cxcscmu/skilllearnbench · baselines/b4-skill-creator/inject/skill-creator/SKILL.md · Create modular skill documents (SKILL.md files) for Claude Code. Use this skill whenever a task requires generating…
cxcscmu/skilllearnbench · skills/b1-one-shot-claude-haiku-4-5/anthropic-poster-design/anthropic-brand-colors/SKILL.md · Anthropic's official brand color palette, design tokens, and typography standards for consistent brand application.
cxcscmu/skilllearnbench · skills/b1-one-shot-claude-haiku-4-5/anthropic-poster-design/python-pillow-graphics/SKILL.md · Create technical graphics, diagrams, and posters using Python Pillow library with precise color control and typography.
cxcscmu/skilllearnbench · skills/b1-one-shot-claude-haiku-4-5/chinese-poem-generator/classical-poetry-peace-theme/SKILL.md · Compose classical Chinese poetry on peace themes using authentic imagery, perspective shifts, and the voice of ordinary…
cxcscmu/skilllearnbench · skills/b1-one-shot-claude-haiku-4-5/chinese-poem-generator/mandarin-rhyming-guide/SKILL.md · Master modern Mandarin pinyin finals and tone systems to create accurate rhymes for classical poetry following…
cxcscmu/skilllearnbench · skills/b1-one-shot-claude-haiku-4-5/court-form-filling/california-sc100-form/SKILL.md · Understand the structure and fields of the California Small Claims Court Form SC-100
cxcscmu/skilllearnbench · skills/b1-one-shot-claude-haiku-4-5/court-form-filling/pdf-form-filling/SKILL.md · Fill PDF form fields programmatically using Python libraries like pypdf or pdfrw
cxcscmu/skilllearnbench · skills/b1-one-shot-claude-opus-4-6/dependency-vulnerability-check/cvss-score-extraction/SKILL.md · Extract CVSS scores from vulnerability data sources with proper fallback handling across NVD, GHSA, and RedHat sources.
cxcscmu/skilllearnbench · skills/b1-one-shot-gemini-3-flash-preview/dependency-vulnerability-check/cvss-score-extraction/SKILL.md · Extract and prioritize CVSS scores from multiple sources in vulnerability reports to ensure the most accurate data is…