vulnforge_inject_patch
Automatically patches vulnerable source code by parameterizing raw queries, adding security headers, and sanitizing DOM sinks to prevent injection and XSS.
Instructions
Synthesizes and automatically injects defensive patches into vulnerable code, converting raw queries to parameterized statements, adding headers, and sanitizing DOM sinks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Target filename (e.g. server.ts, db.ts) | |
| sourceCode | Yes | The vulnerable source code to remediate |