Leavory Security Gate · Free
Trivy dates the CVE. We make the date a rule.
A pipeline step, free with a Leavory account, that reads your Trivy report, fills in the dates Trivy leaves blank, and fails the build when a critical or high CVE has been public for longer than your team allows.
The gap
Trivy knows when a CVE went public. Nothing stops the build for it.
The date is in Trivy’s JSON, but not in the table your team reads, and no Trivy option fails a build because of it: a critical CVE published yesterday and one published two months ago pass the same way. Security Gate turns your patch deadline into a rule the pipeline enforces, so an image that is past due never reaches the registry.
Rule: CRITICAL > 7 days, HIGH > 30 days
3 over the limit · 3 checked| Vulnerability | Severity | Installed → fixed | Published | Age | Status |
|---|---|---|---|---|---|
| CVE-2026-47884spring-webmvc | Critical | 6.2.19 → 7.0.9 | 2026-08-27NVD | 45 days | Over the 7-day limit |
| CVE-2026-47890spring-webmvc | Critical | 6.2.19 → 7.0.9 | 2026-08-27NVD | 45 days | Over the 7-day limit |
| GHSA-qwww-vcr4-c8h2react-router | High | 7.18.1 → 8.3.0 | 2026-07-24GHSA | 79 days | Over the 30-day limit |
Pipeline steps
- Trivy Scan - ImageSucceeded
- Leavory Security GateFailed
- Publish Trivy ReportsSucceeded
- Push image to registrySkipped
##[error]CVE-2026-47884 CRITICAL in org.springframework:spring-webmvc 6.2.19: published 45 days ago (2026-08-27, NVD), limit 7 days; fixed in 7.0.9 ##[error]Bash exited with code '1'.
-
Every finding dated
The publication date of each CVE and GHSA, from NVD, CVE.org, GitHub Advisories, and OSV, including the advisories Trivy reports with no date at all.
-
Your deadline, your rule
Set the maximum age for CRITICAL and HIGH. Fail the build, or only warn while your team catches up. Optionally count only what already has a fix.
-
Nothing leaves your agent
The step only uses your token to download the date file. Your Trivy report, image names, and code stay on the build agent.
Setup
One step after your Trivy scan.
Security Gate is free with a Leavory account. Create an access token in the hub and follow the instructions there to add the step to any pipeline that already runs Trivy.
Each account has two tokens: share one through a variable group and keep the other for rotation.
Access tokens for your pipelines
Each token lets the leavory/security-gate image download the vulnerability dates database.
Active tokens
1 / 2
1 more available
Calls today
12
Across all active tokens
Daily limit
30 / token
Resets at 00:00 UTC
Next expiry
Jan 12
azure-pipelines
Tokens
Only a short prefix is kept. The full value is shown once, when the token is created.| Name | Created | Expires | Last used | Today | Status |
|---|---|---|---|---|---|
| azure-pipelinessg_3f9a… | Oct 14, 2026 | Jan 12, 2027 | 2 hours ago | 12 / 30 | Active |
The data
One date per vulnerability, from four sources.
Leavory consolidates the public vulnerability databases into one file. For each ID, the first source that has it sets the date. GitHub and OSV also match aliases and distribution IDs, so a CVE still waiting for NVD analysis gets a date.
CVE and GHSA IDs
compressed download
sources consolidated
Priority order
- 1NVD
- 2CVE.org
- 3GitHub Advisories
- 4OSV
Data from NVD (public domain), CVE.org, the GitHub Advisory Database (CC-BY 4.0), and OSV (license of each source).
Questions
When does the clock start?
At the publication date of the vulnerability, not when it showed up in your image. The rule answers: has this flaw been public for more than N days and is it still here?
What if a vulnerability has no date in the database?
It is listed as “no date in database” and never fails the build. This happens with brand-new advisories and with ID formats outside CVE and GHSA.
How do I know the database was not tampered with?
The step downloads https://data.leavory.com/latest.json, a manifest signed with a Leavory key that never leaves a vault, and checks the signature with the public key it carries. Then it checks the sha256 of the database. You can set it so that any failed check stops the build.
How fresh is the data, and can I pin it?
The database is rebuilt daily after the sources sync, and again whenever new vulnerabilities show up that day. Every publication gets a version made of the UTC date and its count that day: 20261012.1, 20261012.2, and so on. The build summary shows which version was used. By default the step uses the latest one; pin a version with EXPOSURE_AGE_DB_VERSION for a reproducible build.
What if the database cannot be downloaded?
In the Leavory template, the check is skipped with a warning and the build goes on. Security Gate should never be the reason a pipeline stops.
Want the clock to start when the CVE first appeared in your image, with history per repository? That is Leavory. Request a demo
See Leavory in action.
Tell us which platform you use, and an engineer, not a sales bot, will reach out to schedule a demo.