How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="Project-Bastion/cve-triage")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("Project-Bastion/cve-triage")
model = AutoModelForSequenceClassification.from_pretrained("Project-Bastion/cve-triage", device_map="auto")
Quick Links

cve-triage

Paste a CVE description, get triage suggestions in one pass: the likely CWE (top-5 of 150 frequent classes), the eight CVSS 3.1 base components (AV, AC, PR, UI, S, C, I, A) and a severity band (Low / Medium / High / Critical). It runs on CPU, and in your browser with no server.

Try it in your browser: a static page that runs the model locally (transformers.js, ONNX; 152 MB int8 by default, 599 MB fp32 optional). The text you paste never leaves your device.

Results

CVE List V5, CVEs published from 2026-08-01 (CWE: 49,912 CVEs; CVSS 3.1: 45,778 CVEs). One number per cell: the score on that benchmark.

System CWE top-1 CWE top-5 CVSS components (mean of 8) Exact CVSS vector Severity band accuracy Base-score MAE
cve-triage 0.666 0.891 0.848 0.376 0.664 0.995
CIRCL/vulnerability-severity-classification-roberta-base (revision 2026-03-30) โ€“ โ€“ โ€“ โ€“ 0.630 โ€“
CIRCL/cwe-parent-vulnerability-classification-roberta-base (revision 2026-01-13; the 15% of CVEs whose CWE is in its classes) 0.582 โ€“ โ€“ โ€“ โ€“ โ€“
TF-IDF + linear SVM 0.667 โ€“ 0.841 0.355 0.608 1.14
Majority class 0.083 โ€“ 0.643 0.050 0.406 2.88

Severity bands are the CVSS 3.1 base-score bands of the vector recorded for each CVE. Base-score MAE is computed from the predicted vector.

Usage

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo = "Project-Bastion/cve-triage"
tok = AutoTokenizer.from_pretrained(repo); model = AutoModelForSequenceClassification.from_pretrained(repo).eval()
desc = ("A stack-based buffer overflow in the HTTP request parser of ExampleServer before 2.4.1 allows remote "
        "unauthenticated attackers to execute arbitrary code via a long Host header.")
enc = tok(desc, truncation=True, max_length=160, return_tensors="pt")
with torch.no_grad(): logits = model(**enc).logits[0]
labels = [model.config.id2label[i] for i in range(len(logits))]            # "CWE-79", ..., "OTHER", "AV:N", ..., "SEVERITY:HIGH"
groups = {}
for i, l in enumerate(labels): groups.setdefault(l.split(":")[0] if ":" in l else "CWE", []).append(i)
def best(g, k=1):
    p = torch.softmax(logits[groups[g]], -1); top = p.topk(k)
    return [(labels[groups[g][j]], round(float(v), 3)) for v, j in zip(top.values, top.indices)]
print("CWE top-5:", best("CWE", 5))
print("CVSS components:", {g: best(g)[0][0].split(":")[1] for g in ("AV", "AC", "PR", "UI", "S", "C", "I", "A")})
print("Severity:", best("SEVERITY")[0])

The logits are 9 softmax heads (CWE classes + OTHER, AV, AC, PR, UI, S, C, I, A, SEVERITY); the snippet slices them by the label names in config.json. Input: the English CVE description, truncated to 160 tokens.

Files

onnx/model.onnx (fp32, 599 MB) and onnx/model_quantized.onnx (weight-only int8, 152 MB, the demo default). int8 keeps the top-1 CWE for 99.5% of descriptions and the severity band for 98.5%; use the fp32 file when you need the exact ordered top-5 list.

Limits

  • Treat the output as a triage hint, not an official score: CWE and severity labels vary between CVE numbering authorities.
  • English descriptions only; CWEs outside the top-150 map to OTHER.

License and credits

Apache-2.0. Base model: cisco-ai/SecureBERT2.0-base (Apache-2.0). Data: the CVE List (cvelistV5) used under the CVE Program Terms of Use. CVEยฎ is a registered trademark of The MITRE Corporation; CVE content copyright ยฉ The MITRE Corporation. Baselines: CIRCL/vulnerability-severity-classification-roberta-base (CC-BY-4.0) and CIRCL/cwe-parent-vulnerability-classification-roberta-base (MIT).

Downloads last month
86
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Project-Bastion/cve-triage

Quantized
(3)
this model

Space using Project-Bastion/cve-triage 1

Evaluation results