Skip to content

CRA incidents (Cyber Resilience Act)

The CRA incidents register in Polski for WooCommerce records actively exploited vulnerabilities, security incidents and near misses, counts down a 24-hour early-warning deadline, sends a notification by webhook or email, and exports each incident as JSON. It is part of the security.txt (RFC 9116) module (cra_readiness), which is off by default.

The CRA incidents module is meant for manufacturers of products with digital elements, because Art. 14 of the EU Cyber Resilience Act binds them, not shops (for example, a shop that also publishes its own plugin or app).

CRA Art. 14 defines three reporting thresholds for manufacturers of digital products:

Threshold Deadline Scope
Early warning 24h Detection fact, component, preliminary assessment
Incident report 72h Root cause, scope, applied mitigations
Final report 14 days after a fix is available (vulnerability), 1 month after the notification (incident) Full root cause, remediation, recommendations

The module calculates the 24h deadline automatically from discoveredAt. The other deadlines (72h, final report) must be tracked manually - they are outside the FREE scope.

Open the CRA incidents screen (admin.php?page=polski-cra-incidents, linked from Polski > Reports & Tools) and click Record incident. The form:

Field Notes
Title Short title (required)
Affected component Product or module name (e.g. polski-free, custom-checkout-module)
Affected versions Version range (e.g. <= 2.0.4)
Reporter Person who registered the report
External reference ID CVE / bug tracker / CVD identifier (optional)
Kind Actively exploited vulnerability (vulnerability), Security incident (incident), Near miss / weakness (near_miss)
Severity critical, high, medium, low
Summary Technical description (required)

After saving, the incident is in status Open and has deadlineAt = discoveredAt + 24h.

For every Open incident the list offers a Dispatch notification action. It fires in parallel:

  • Webhook (POST JSON) to the "CRA incident webhook URL" setting (polski_cra[incident_webhook])
  • Email with a human summary to the "CRA incident notification email" setting (polski_cra[incident_email])

Both are set on the security.txt module card in Polski > Modules. The older standalone options polski_cra_incident_webhook and polski_cra_incident_email are still read when the new fields are empty. After a 2xx response from the webhook or a successful email, the incident transitions to status Notified and stores notifiedAt.

The Export JSON action returns cra-incident-<id>-<timestamp>.json with Content-Type: application/json. The file uses the plugin's own polski.cra_incident schema (version 1), meant as input for the ENISA Single Reporting Platform form.

Example:

{
"schema": "polski.cra_incident",
"schema_version": 1,
"reference_id": "CVE-2026-1234",
"kind": "vulnerability",
"severity": "high",
"status": "open",
"title": "Stored XSS in checkout notes",
"summary": "...",
"affected": {
"component": "polski-free",
"versions": "<= 2.0.4"
},
"timeline": {
"discovered_at": "2026-04-19T08:12:00+00:00",
"deadline_at": "2026-04-20T08:12:00+00:00",
"notified_at": null,
"resolved_at": null
},
"reporter": "Jan Kowalski",
"payload": []
}

Without an external reference, reference_id is POLSKI-CRA-<id>.

// After an incident is recorded (before any notification).
add_action('polski_cra_incident_recorded', function (int $id, $incident): void {
// Your integration: Jira, PagerDuty, Slack
}, 10, 2);
// When less than 2h remain to the 24h deadline.
add_action('polski_cra_incident_deadline_approaching', function ($incident): void {
// Escalate to DPO
});

Database migration 2.1.0 (an internal schema version, not the plugin version) creates the {$wpdb->prefix}polski_cra_incidents table. Migration runs automatically on activation. If it does not, run the pending migrations by hand:

Terminal window
wp polski migrate
  • UI and actions: manage_woocommerce
  • Webhook / email: freely configurable (no capability requirement - these are outbound channels)

An incident is Open when recorded, becomes Notified after a successful dispatch, and Resolved with the Mark resolved action. The status list also has Investigating and False positive. The deadline check only looks at Open incidents that were not notified yet.

  • The module does not auto-track the 72h and final-report deadlines (only 24h)
  • Incident detection is manual - we do not scan logs
  • The webhook has no HMAC signature (planned for PRO)
  • The form does not support binary attachments - attach them to the ENISA SRP submission manually

Do online shops have to report incidents under the CRA?

Section titled "Do online shops have to report incidents under the CRA?"

Art. 14 binds manufacturers of products with digital elements, not shops. The register is for a shop that also publishes its own software, such as a plugin or an app.

Does the module send the report to ENISA?

Section titled "Does the module send the report to ENISA?"

No. It prepares a JSON file and can notify your team by webhook or email. You submit the report on the ENISA Single Reporting Platform yourself.

Which deadline does the module track?

Section titled "Which deadline does the module track?"

Only the 24-hour early warning, counted from the discovery time. The hourly cron fires polski_cra_incident_deadline_approaching when two hours or less remain.