Security Advisory Timeline

Disclosures, affected ranges, fixes and withdrawals for a package on one timeline, with time-to-fix.

More options

Response of POST https://api.osv.dev/v1/query, an array of OSV records, or one record.

npm packument (uses "time"), PyPI JSON (uses "releases") or {"1.2.3": "2024-01-01T00:00:00Z"}.

Try an example:

More about this tool

Part of Provenance Security & supply-chain explorers

How it works

Merges every OSV.dev advisory for a package (npm, PyPI, Go, crates.io, Maven, RubyGems, Packagist, NuGet) or a list of advisory IDs into one chronological timeline: publication, last modification, withdrawal and fix releases with their registry release dates (npm and PyPI). For each advisory it lists affected version ranges and fixed versions, and measures how long before or after disclosure the fix shipped and how long vulnerable versions were current. Paste OSV JSON to work without live lookups.

  • Package mode: POST https://api.osv.dev/v1/query with {package:{name, ecosystem}} (up to 5 result pages). ID mode: GET https://api.osv.dev/v1/vulns/{id} for up to 50 IDs. Withdrawn advisories are kept and marked.
  • Records for the same issue from several databases (GHSA-… and PYSEC-… sharing an id or alias) are merged into one row before the metrics are computed, so an issue is counted once: best-rated severity and its record id lead, ranges and fixed versions are united, the earliest publication and fix release are used, and the issue is withdrawn only if every record is.
  • Affected ranges are rebuilt from OSV range events (introduced / fixed / last_affected / limit); GIT commit ranges are skipped. "last_affected" means no fixed version is published in the record.
  • Release dates: npm registry packument "time" field (registry.npmjs.org/<name>) or the PyPI JSON API (earliest upload_time_iso_8601 per release). Other ecosystems: paste a {version: date} map.
  • Fix→disclosure days = advisory published − first fixed release date (positive: the fix shipped before the advisory, typical for coordinated disclosure; negative: users were exposed after disclosure). Vulnerable window = first fixed release − release of the introducing version (or the first release when "introduced: 0").

Use this tool in an app

These free programs for your browser have this tool built in, next to everything else the task needs.

  • Provenance Software supply-chain security desk

    SBOMs, CVEs, containers and licences in one risk register — free.

    Open Provenance

Related tools

How to use the Security Advisory Timeline

Put every OSV advisory for a package on one timeline and see how fast fixes shipped compared with public disclosure.

What it is for

"How many vulnerabilities does this package have?" is less useful than "how does this project handle vulnerabilities?" Did the fix ship before the advisory went public, or did users sit exposed for weeks? Are there active advisories with no fix at all? Were some reports withdrawn as invalid?

This tool answers that from OSV.dev. Enter a package (npm, PyPI, Go, crates.io, Maven, RubyGems, Packagist or NuGet) or a list of advisory ids. It merges every advisory into one chronological timeline: publication, last modification, withdrawal, and fix releases. For npm and PyPI it looks up the fix release dates in the registry. For other ecosystems, or offline, you can paste OSV JSON and a {version: date} map.

It describes the history of the package. It doesn't check your installed version — use the Dependency Vulnerability Explorer for that.

Worked example

The built-in example uses three fictional OSV records for npm:demo-parser and pasted release dates (1.0.0 on 2022-01-10, 1.4.2 on 2024-03-05, 2.0.0 on 2023-12-15, 2.1.1 on 2024-03-06, 2.3.0 on 2024-08-20).

npm:demo-parser: 3 advisories (1 withdrawn, 1 active without a fixed version) published 2023-11-20 to 2024-09-02; median fix shipped 7 days before disclosure.

Worked example
AdvisorySeverityAffectedFixFix vs disclosure
EXAMPLE-0003LOW, withdrawn 2023-12-01>=1.0.0 <1.3.01.3.0173 days before
EXAMPLE-0001HIGH<1.4.2; >=2.0.0 <2.1.11.4.2, 2.1.17 days before
EXAMPLE-0002MODERATE>=2.0.0 <=2.3.0none—

The prototype-pollution advisory (EXAMPLE-0001) is the healthy pattern. Both branches were patched (1.4.2 on 2024-03-05, 2.1.1 a day later) before the advisory was published on 2024-03-12. That is typical coordinated disclosure. The ReDoS advisory is the worrying one: last_affected: 2.3.0 means no fixed release is recorded, so everyone on 2.x stays exposed. The tool reported a vulnerable window of 785 days for EXAMPLE-0001. Its first range starts at introduced: 0, so the window is measured from the first release (1.0.0, 2022-01-10) to the first fix (1.4.2, 2024-03-05). The later introduced: 2.0.0 range doesn't shorten it.

How to read the result

  • Metrics — active vs withdrawn advisories, how many have no fix, and two medians. Median days fix→disclosure is positive when fixes usually ship before the advisory goes public. Median vulnerable window is how long vulnerable versions were current before a fix existed. Withdrawn advisories are excluded from both.
  • Advisories table — ranges rebuilt from OSV events, fixed versions, and the two per-advisory durations.
  • Events — the merged timeline. Read it top to bottom to see how the project reacted.

Tips and common mistakes

  • A negative fix→disclosure value means the advisory was public before any fix existed. A pattern of negative values says more about a project than its total advisory count.
  • "No fixed version" with last_affected means upgrading won't help. You need a workaround, a fork or a replacement.
  • Withdrawn advisories stay on the timeline on purpose. If your scanner still flags one, its database is stale.
  • An advisory spanning several branches gets one vulnerable-window number. Read the fix-release events to see each branch's timing.
  • Release dates only come automatically from npm and PyPI. For Maven, Go and the others, paste the dates, or the duration columns stay empty.
  • OSV publication dates can be later than the original vendor advisory, because some records are imported. Check the aliases if exact timing matters.

FAQ

Is a fix shipped "before disclosure" good?

Usually, yes. It means the maintainers had the report privately and released a patch before announcing it, which gave users a head start.

Why are the duration columns empty?

No release date was found for the fixed or introducing version. That happens with ecosystems other than npm and PyPI unless you paste a release-date map, or when "Look up fix release dates" is off.

Can I build a timeline for specific CVEs instead of a package?

Yes. Put the advisory ids (CVE, GHSA, PYSEC…) one per line into the advisory id field. Up to 50 are fetched.

Why do withdrawn advisories appear at all?

They are part of the history. Seeing that a report was withdrawn explains why one tool flags a version and another doesn't.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://securityadvisorytimeline.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://securityadvisorytimeline.usefulweb.site/mcp · tool name security_advisory_timeline
Example request
curl -s -X POST https://securityadvisorytimeline.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{…see OpenAPI examples…}'
Feedback · ideas & bug reports welcome