Skip to content

Dashboard chat panel uses innerHTML without consistent sanitization (XSS) #4

@CalebisGross

Description

@CalebisGross

Problem

internal/web/static/index.html: Multiple `innerHTML` assignments use raw data. While `escapeHtml()` exists, it is not used consistently across all dynamic content insertion points, particularly in the agent chat message rendering and tooltip construction.

Impact

Potential XSS vulnerability if the server or local LLM returns content with embedded HTML/script tags.

Fix

Audit all `innerHTML` assignments and ensure `escapeHtml()` is applied consistently, or switch to `textContent` where HTML rendering isn't needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions