Rescan Agent

Report a new vulnerability

Report a new vulnerability discovered during a rescan. The reported file must be within the rescan agent's scope. Provide a title, detailed description, affected file with line range, category, and severity. The frontend validates the input and returns a confirmation; the full_scan worker later enriches the report with language detection, scoring, and code segment extraction before creating the vulnerability record.

post/api/v2/rescanAgent/reportNewVuln

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

titlestring required

Short title summarizing the new vulnerability.

descriptionstring required

Detailed description of the vulnerability, including impact and reproduction steps.

filestring required

Repository-relative path of the file containing the vulnerability.

lineStartinteger required

First line of the vulnerable code.

lineEndinteger required

Last line of the vulnerable code (must be >= lineStart).

categorystring required

Vulnerability category (e.g. "SQL Injection", "Cross-Site Scripting").

severity'critical' | 'high' | 'medium' | 'low' | 'info' required

Severity level of the reported vulnerability.

Response

Vulnerability report accepted

reportedboolean required

Always true on success.

vulnobject required

Echo of the reported vulnerability input.

Changes

No recorded changes to this operation across all 1 revision of this API.