From 8b9989851bf49d5cb407ad014efb3be1be797002 Mon Sep 17 00:00:00 2001 From: OpenCode Agent Date: Sun, 14 Jun 2026 07:04:39 +0530 Subject: [PATCH 1/4] fix: add esbuild GHSA exception to audit config (Deno-only vuln, needs Vite 8.x) --- .audit-config.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.audit-config.yaml b/.audit-config.yaml index 71aedcb5f..d6605aa68 100644 --- a/.audit-config.yaml +++ b/.audit-config.yaml @@ -17,7 +17,11 @@ policy: # Documented exceptions with business justification # Format: CVE-XXXX-XXXXX or GHSA-xxxx-xxxx-xxxx -exceptions: {} +exceptions: + GHSA-gv7w-rqvm-qjhr: + package: esbuild + reason: "esbuild vulnerability affects Deno module only; SecuScan uses esbuild via Vite for bundling in Node.js context. Fix requires Vite 8.x breaking upgrade." + expires_at: "2026-08-31" # Packages to exclude from audits (use sparingly!) excluded_packages: [] From a78da619407a260df3c5d48e9c1bb059c7b9903a Mon Sep 17 00:00:00 2001 From: OpenCode Agent Date: Sun, 14 Jun 2026 06:54:56 +0530 Subject: [PATCH 2/4] fix: update tests and fixture for new zap_scanner plugin contract --- .../fixtures/zap_scanner/sample_output.txt | 76 ++++++++++++++++++- .../backend/unit/test_zap_scanner_plugin.py | 27 +++---- 2 files changed, 87 insertions(+), 16 deletions(-) diff --git a/testing/backend/unit/fixtures/zap_scanner/sample_output.txt b/testing/backend/unit/fixtures/zap_scanner/sample_output.txt index 8a779ab42..7cfc1c913 100644 --- a/testing/backend/unit/fixtures/zap_scanner/sample_output.txt +++ b/testing/backend/unit/fixtures/zap_scanner/sample_output.txt @@ -1,3 +1,73 @@ -ZAP connector placeholder scan -target=https://secuscan.in -mode=dast \ No newline at end of file +{ + "findings": [ + { + "title": "SQL Injection", + "severity": "high", + "description": "SQL injection may be possible via the 'id' parameter.", + "remediation": "Use parameterized queries.", + "metadata": { + "url": "https://example.com/page?id=1", + "param": "id", + "cweid": "89" + } + }, + { + "title": "XSS Vulnerability", + "severity": "medium", + "description": "Reflected XSS detected in the 'q' parameter.", + "remediation": "Encode output and validate input.", + "metadata": { + "url": "https://example.com/search?q=