route-handlers
Fail
Audited by Gen Agent Trust Hub on Jul 18, 2026
Risk Level: HIGHDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The file download example in
references/streaming-responses.mdcontains a path traversal vulnerability. It constructs a file path usingpath.join(process.cwd(), 'files', filename)wherefilenameis an unvalidated user parameter from the URL, which could allow reading arbitrary files like.envand other sensitive configurations. - [DATA_EXFILTRATION]: The file upload example in
references/http-methods.mdis vulnerable to path traversal and arbitrary file overwrite. It uses the user-providedfile.nameto build the destination pathpath.join(process.cwd(), 'public/uploads', filename)without sanitization, allowing an attacker to overwrite files outside the intended directory. - [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection attack surface (Category 8) by ingesting untrusted data through multiple channels without consistent validation.
- Ingestion points: The skill reads from
request.json(),request.formData(), andcontext.paramsinSKILL.mdandreferences/http-methods.md. - Boundary markers: Most snippets do not use delimiters or instructions to ignore embedded commands within user-provided data.
- Capability inventory: The skill demonstrates dangerous capabilities including file system writing (
writeFile), file system reading (createReadStream), and database operations via Prisma. - Sanitization: While Zod is mentioned in one example, many other snippets provide code that directly interpolates untrusted input into file paths and database queries without validation.
Recommendations
- AI detected serious security threats
Audit Metadata