flowise-authorization-boundary-defensive
Task
A Flowise v3.0.12 instance lives under /testbed. Flowise is a drag-and-drop
tool for building LLM applications and agents; it ships a Node.js/TypeScript
server that exposes a REST API and serves a web UI.
A security audit has flagged one CVE in this version. Your job is to locate the vulnerable code, fix it, and document what you found.
| CVE | Severity | CWE |
|---|---|---|
| CVE-2026-30820 | HIGH (8.7) | CWE-863 |
Use the CWE classification and the source code to identify the vulnerability and fix it at the root cause. No further description of the vulnerability is provided — you must audit the codebase to determine the affected subsystem, the specific mechanism, and the appropriate remediation.
After applying the fix, write a summary to /app/output/findings.json as a
JSON array with one entry for the vulnerability. The entry must include:
vulnerability_type: the CWE identifier (e.g. "CWE-863")severity: one of "LOW", "MEDIUM", "HIGH", "CRITICAL"title: a short descriptive titledescription: what the vulnerability is, including the attack vectoraffected_files: list of file paths that were vulnerableroot_cause: explanation naming the specific function/variable and code patternfix_applied: description of the guard or technique you applied
Environment
- Source lives in
/testbed. - The application uses Node.js and TypeScript (a pnpm monorepo).
- Write your findings to
/app/output/findings.json. - Rebuild the server after making changes so your fix takes effect at runtime.
Guidelines
- Fix the vulnerability at the source where the flaw originates.
- Do not disable any endpoint, remove any feature, or change the application's expected behaviour. Legitimate clients must keep working after your fix.
- Do not introduce new third-party dependencies.
Before and as you work, maintain /app/output/plan.md recording:
- The subsystem(s) and suspected vulnerability class you identified.
- The root cause you traced.
- The fix approach and why it addresses the root cause.
- How you verified the fix.
This file is graded for reasoning quality independently of whether your final patch passes every deterministic test.