Skip to content

Mark a finding "not affected"

A vulnerable component can be in your software bill of materials (SBOM) while the vulnerability cannot affect your product, for example because your code never calls the vulnerable function. You record that assessment in .witnyx.yml, under notAffected. Once a person approves the entry, the finding no longer counts for the failure rules, and the report keeps it as evidence under “Assessed as not affected”.

Only vulnerability findings can be assessed: actively exploited and other known vulnerabilities. End-of-life, quality and disclosure findings cannot.

An approved entry, in a whole .witnyx.yml:

.witnyx.yml
version: 1
failOn: [exploited]
notAffected:
- id: CVE-2021-44228
component: pkg:maven/org.apache.logging.log4j/log4j-core
justification: vulnerable_code_not_in_execute_path
note: We never log user-controlled input.
assessedBy: Sam Lee <[email protected]>
approvedBy: Jane Doe <[email protected]>
approvedOn: 2026-11-16
expires: 2027-05-16
Field Required What to write
id Yes The vulnerability ID that the report shows, such as a CVE ID, or one of its aliases. Letter case does not matter.
component Yes The component’s package URL. Without a version, as above, the entry covers every version of the package; with one, only that version.
justification Yes Why the product is not affected, as one of the five OpenVEX justifications below.
note No A short reason that a person can check.
assessedBy No Who made the assessment. An AI agent writes its own name here.
approvedBy For the entry to count The person who approved it, with an email address, such as Jane Doe <[email protected]>.
approvedOn With approvedBy The day the person approved it, written YYYY-MM-DD.
expires Yes The day the assessment must be reviewed again: after approvedOn, and at most 12 months after it.

The five justifications are component_not_present, vulnerable_code_not_present, vulnerable_code_not_in_execute_path, vulnerable_code_cannot_be_controlled_by_adversary and inline_mitigations_already_exist.

An entry applies to a finding when the IDs match, the finding’s own ID or one of its aliases, and the package matches. The first matching entry wins. Two entries with the same ID, in any letter case, and the same component are an error. The configuration file reference lists the fields with their types.

Deciding that a vulnerability does not affect your product is a judgement that someone answers for. The entry records who assessed it, who approved it and until when, so that the report can serve as evidence of that decision.

So the rules for approval are strict:

  • approvedBy is for people only. It must contain an email address. An AI agent never fills it in.
  • approvedOn is required when approvedBy is set, and must stay empty while approvedBy is empty.
  • expires is required in every entry, approved or not. It must be after approvedOn and at most 12 months after it, so every assessment is reviewed at least once a year.
  • An approvedOn in the future does not count yet: until that day the entry is pending, and the report says the approval date is in the future.

A file that breaks one of these rules stops the check with WX-CONFIG, and the message names the entry and the field, such as notAffected[0].approvedBy.

An entry without approvedBy is pending human review:

.witnyx.yml
version: 1
notAffected:
- id: CVE-2021-44228
component: pkg:maven/org.apache.logging.log4j/log4j-core
justification: vulnerable_code_not_in_execute_path
note: We never log user-controlled input.
assessedBy: my-agent (agent)
approvedBy:
approvedOn:
expires: 2027-05-16

A pending entry changes nothing about the build: the finding still counts for failOn, and an actively exploited vulnerability still fails the build. The report lists the entry under “Pending human review”, with who proposed it.

To approve it, a person reads the assessment and the note, fills in approvedBy with their name and email address and approvedOn with the day, checks that expires is at most 12 months after that day, and commits the file.

From the day after expires, the finding is active again: it counts for failOn, and the report notes that the assessment expired. The day is the date of the check in UTC. Review the assessment again. If it still holds, a person approves it with a new approvedOn and expires; if it no longer holds, remove the entry and fix the finding.

An agent may record an assessment only after the user agreed with it. It sets assessedBy to its own name and leaves approvedBy and approvedOn empty, so the entry is pending until a person approves it. The first note in every report for an agent says the same; Use from an AI agent lists the notes.

The MCP server’s propose_not_affected tool writes such an entry, and nothing else:

  • It writes a pending entry only. It has no argument for approvedBy or approvedOn and refuses both.
  • Its expires must be after today and at most 12 months away.
  • It refuses an entry with the same ID and component as an existing one.
  • It writes only .witnyx.yml at the top of the repository, never through a symbolic link, and keeps the file’s comments.
  • When it cannot change the file safely, for example when the file has notAffected: [], it writes nothing. Its error then holds the entry as YAML for a person to paste.
  • It returns the entry, a unified diff of the file, and a next action that asks the user to review the entry.

Connect the MCP server shows how to set up the server.

Here is a text report with two assessments: an approved one for an actively exploited vulnerability, which no longer counts for the failure rules, and one pending human review. The check passes, and the report keeps both as evidence:

Text report
Witnyx release security check — my-app 2.4.1
[PASS] No actively exploited vulnerabilities, apart from 1 assessed as not affected
Assessed as not affected: 1
CVE-2021-44228 org.apache.logging.log4j:log4j-core 2.14.1: vulnerable_code_not_in_execute_path (approved by Jane Doe <[email protected]> on 2026-11-01; expires 2027-05-01)
Pending human review: 1
CVE-2020-8203 lodash 4.17.20: component_not_present (proposed by claude-code (agent); needs approvedBy from a person)
Checked 2026-11-14T09:12:03Z · 3 components (1 not checked: no package ID or version)
Continuous monitoring and 24-hour reporting alerts → witnyx.dev
  • Text. An approved finding is listed under “Assessed as not affected”, with its justification, who approved it, on which day, and when the assessment expires. A pending one is listed under “Pending human review”, with who proposed it and that it needs approvedBy from a person. When the check passes, its headline counts the actively exploited vulnerabilities assessed as not affected.
  • Markdown. Both kinds are listed under “Assessed as not affected”, and each pending one is marked “pending human review”.
  • JSON. The finding keeps its details. Its status is not_affected or pending_review, and details.assessment holds the entry. summary.notAffected and summary.pendingReview count them. An expired assessment leaves the finding active, with the expiry day in details.assessmentExpired.
  • SARIF. An approved finding carries a suppression with the status accepted and the justification; a pending one carries a suppression with the status underReview.

Witnyx is a record-keeping and workflow tool. It does not certify compliance. Nothing on this site is legal advice.