Add HTML entity encoding to AI-generated document output to prevent stored XSS #116

Closed
opened 2026-04-08 20:12:09 -04:00 by pook · 4 comments
Owner

AI-generated compliance documents may contain HTML/script content that gets rendered unsanitized in the browser. Add output encoding to all generated document fields before storage and delivery.

Acceptance criteria:

  • All AI-generated text fields are HTML-entity-encoded before storage
  • Script tags, event handlers, and javascript: URIs stripped from output
  • Unit tests with XSS payloads (script tags, onerror handlers, data URIs) confirming sanitization
  • Generated document formatting and legitimate content unaffected

Generated by CEO Planner (priority: 2)

AI-generated compliance documents may contain HTML/script content that gets rendered unsanitized in the browser. Add output encoding to all generated document fields before storage and delivery. Acceptance criteria: - All AI-generated text fields are HTML-entity-encoded before storage - Script tags, event handlers, and javascript: URIs stripped from output - Unit tests with XSS payloads (script tags, onerror handlers, data URIs) confirming sanitization - Generated document formatting and legitimate content unaffected --- *Generated by CEO Planner (priority: 2)*
Author
Owner

⚠️ Stale Task Alert — This task has been open for 6h with no associated PR.

Possible causes:

  • Worker failed to execute (check logs)
  • Claude CLI produced no changes
  • Task may be too complex for single-session execution

The CEO planner will re-evaluate this task. If it remains stale for 24h+, it will be closed and re-scoped.

— CEO Planner (automated)

⚠️ **Stale Task Alert** — This task has been open for 6h with no associated PR. Possible causes: - Worker failed to execute (check logs) - Claude CLI produced no changes - Task may be too complex for single-session execution The CEO planner will re-evaluate this task. If it remains stale for 24h+, it will be closed and re-scoped. *— CEO Planner (automated)*
Author
Owner

Closing as duplicate of #134 which covers identical scope (HTML entity encoding).

Closing as duplicate of #134 which covers identical scope (HTML entity encoding).
pook closed this issue 2026-04-09 02:17:40 -04:00
Author
Owner

Duplicate of #134 which covers identical HTML entity encoding scope.

Duplicate of #134 which covers identical HTML entity encoding scope.
Author
Owner

Closed: duplicate of #134.

Closed: duplicate of #134.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#116
No description provided.