Skip to content

Remediation Plan ​

Name the fixed version to upgrade to for each package the given CVEs affect, with an estimate of the effort and breaking-change risk of each upgrade.

The plan names a version. It does not generate patches, diffs or package overrides, and it does not check that the named version builds or runs in your environment.

Endpoint ​

POST /api/v1/remediation/plan

This is POST only. A GET returns 405 naming the method, because the endpoint exists and saying "not found" about it would send you looking for a typo.

Request ​

FieldTypeRequiredDescription
cvesstring[]YesCVE identifiers to plan around, at most 100. If any entry is not of the form CVE-YYYY-NNNN, the whole request answers 400 naming the invalid entries, rather than silently planning around the rest.
packagesobjectNoMap of package name to the version you currently run. Supplies currentVersion and lets the effort and breaking-change analysis work.
bash
curl -X POST https://api.vulnpatch.dev/api/v1/remediation/plan \
  -H 'Content-Type: application/json' \
  -d '{
    "cves": ["CVE-2021-44228", "CVE-2022-0847"],
    "packages": { "org.apache.logging.log4j:log4j-core": "2.14.1" }
  }'

The two CVEs show the two main outcomes. Log4Shell (CVE-2021-44228) has recorded fixed versions, so it produces upgrades. Dirty Pipe (CVE-2022-0847) is recorded only against kernel, with no fixed version, so it is reported as unfixable.

Package names must match the advisory's own naming. Log4Shell is recorded against org.apache.logging.log4j:log4j-core, not log4j-core. A name that matches nothing is not an error and does not reduce the plan: every upgrade is still returned, with currentVersion null.

Response ​

The plan is returned under data, beside success and timestamp. The example below is abridged: Log4Shell is recorded against fourteen packages with a fixed version, and two of the fourteen upgrades are shown.

json
{
  "success": true,
  "data": {
    "upgrades": [
      {
        "packageName": "Apache Log4j2",
        "currentVersion": null,
        "targetVersion": "2.15.0",
        "fixesCves": ["CVE-2021-44228"],
        "cvssImpact": 10,
        "effort": "moderate",
        "breakingChange": { "isBreaking": false, "reason": null }
      },
      {
        "packageName": "org.apache.logging.log4j:log4j-core",
        "currentVersion": "2.14.1",
        "targetVersion": "2.15.0",
        "fixesCves": ["CVE-2021-44228"],
        "cvssImpact": 10,
        "effort": "moderate",
        "breakingChange": { "isBreaking": false, "reason": null }
      }
    ],
    "stats": {
      "totalCves": 2, "fixableCves": 1, "unfixableCves": 1,
      "upgradeCount": 14, "totalCvssImpact": 10
    },
    "unfixable": [{ "cveId": "CVE-2022-0847", "reason": "No known fix version" }],
    "packagesWithoutFix": [
      { "cveId": "CVE-2021-44228", "packageName": "com.guicedee.services:log4j-core" },
      { "cveId": "CVE-2021-44228", "packageName": "minecraft" }
    ]
  },
  "timestamp": "2026-10-15T19:56:43.557Z"
}

Upgrade fields ​

  • targetVersion: the highest fixed version recorded for that package across the CVEs in the request.
  • cvssImpact: the summed CVSS score of the CVEs this upgrade resolves. Upgrades are ranked by it, highest first.
  • effort: trivial for a patch-level move, moderate for a minor-version move, significant for a major-version move. It is moderate whenever either version is unknown or not semantic, which includes every upgrade without a currentVersion.
  • breakingChange: isBreaking is true only for a major-version bump. It is a version-number heuristic, not a reading of the changelog.

Telling the three outcomes apart ​

The distinction that matters most here is between a CVE for which we hold no fixed version at all and a package we happen to hold no fixed version for.

  • upgrades: one per package, ranked by the CVSS it resolves. A CVE recorded against fourteen packages with a fixed version produces fourteen upgrades.
  • unfixable: a CVE for which the planner cannot emit a defensible upgrade. Usually no affected package has a recorded fixed version. It also includes a planning gap when one package has several fixed versions whose version scheme cannot be ordered safely. One entry per CVE. This does not mean no fix exists upstream; the reason states which evidence is missing or incomparable.
  • packagesWithoutFix: a package with no recorded fixed version, for a CVE that is fixable through some other package. It does not mean no fix exists. It means we hold no fixed version for that particular package.

stats.totalCvssImpact counts each CVE once at its highest reported score, however many packages it affects. Summing the per-upgrade figure instead would multiply Log4Shell's score of 10 by every package it is recorded against.

unresolved and partial ​

unresolved is present when a CVE could not be looked up at all. It is kept separate from unfixable deliberately: one says we looked and found no fixed version, the other says we could not look. Treat unresolved as a reason to retry, not as a finding about the CVE.

partial is true whenever a CVE was unresolved or a source could not be read. failedSources then names the sources that failed, and note says that the plan may be incomplete. A plan without partial read every source it tried.

How a fix is resolved ​

The plan reads each CVE's merged record, the same one the dossier serves, when that record is already stored. When it is not, the plan resolves the fix from the archived CVE record using the same package-resolution logic the dossier uses (changes/affected-version data, not a nonexistent "fixed" status value). If the archived record itself states no fix, the plan reads the current CVE List record live, bounded to 10 such reads per request; a failed read of that fallback marks the plan partial with failedSources carrying cve_list_v5 or lookup:<id>. A CVE genuinely has no recorded fix only when none of these three sources name one -- that is the real meaning of unfixable with "No known fix version".

One naming difference between a warm and a cold plan: a warm plan (dossier already stored) can use the dossier's own package name, which sometimes differs from the CVE record's own wording (e.g. a GitHub-derived name like log4j-core versus the CVE record's "Apache Log4j2"). A cold plan always uses the name the CVE record itself states. Two CVEs for what is really the same package can therefore appear as two separate packages entries in a cold plan if their own records name it slightly differently; re-running the plan once the dossier is warm can merge them.

What a target version does and does not promise ​

targetVersion is the fixed version the advisory names for the CVEs you asked about. It is not a statement that the version is free of every other vulnerability.

Log4Shell demonstrates this. For CVE-2021-44228 alone the plan returns 2.15.0 for org.apache.logging.log4j:log4j-core, which is what that advisory names. Three later Log4j CVEs carry later fixes in their own records: CVE-2021-45046 (2.16.0), CVE-2021-45105 (2.17.0) and CVE-2021-44832 (2.17.1). The version you actually want is 2.17.1.

So pass every CVE you know about for a package in one request rather than one at a time: targetVersion is the highest fix across the CVEs given for that package. A single-CVE plan answers a single-CVE question only.

Errors ​

StatusCause
400Missing or empty cves array (the response carries an example body), more than 100 CVEs, or no identifier of the form CVE-YYYY-NNNN.
405A method other than POST. The Allow header names POST.
429Rate limited.
500The plan could not be built.