flowise-authorization-boundary-defensive

defensivedefensivesource-auditauthorizationtypescriptjavascriptweb-application

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.

CVESeverityCWE
CVE-2026-30820HIGH (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 title
  • description: what the vulnerability is, including the attack vector
  • affected_files: list of file paths that were vulnerable
  • root_cause: explanation naming the specific function/variable and code pattern
  • fix_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

  1. Fix the vulnerability at the source where the flaw originates.
  2. Do not disable any endpoint, remove any feature, or change the application's expected behaviour. Legitimate clients must keep working after your fix.
  3. Do not introduce new third-party dependencies.

Before and as you work, maintain /app/output/plan.md recording:

  1. The subsystem(s) and suspected vulnerability class you identified.
  2. The root cause you traced.
  3. The fix approach and why it addresses the root cause.
  4. How you verified the fix.

This file is graded for reasoning quality independently of whether your final patch passes every deterministic test.