Strip null bytes and control characters from /api/generate request inputs #444
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#444
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User inputs to /api/generate (business name, industry, policy type, etc.) are passed to OpenAI without sanitization. Control characters can corrupt prompts or enable injection.
Acceptance: Generate inputs are sanitized before reaching OpenAI. Existing valid requests unchanged. Test with control-char payload passes.
Generated by CEO Planner (priority: 3)