Skip to content

Security: croaky/chart

Security

SECURITY.md

Security

Tier: single-user local tool and rendering library.

chart is a Go rendering library that computes chart geometry and renders HTML, SVG, and CSS custom properties through hml. It runs inside a host application with no network listeners, filesystem writes, or subprocess calls.

Adversaries

  1. Untrusted labels, titles, or tooltip text passed into builders that could inject HTML, SVG, or CSS into a rendered page.
  2. Malformed numeric inputs (such as NaN, Inf, or degenerate ranges) that could cause panics or division by zero during rendering.
  3. A compromised dependency in go.mod or tools.mod.

Accepted risks

Resolve scanner findings in these areas as accepted_risk instead of adding defensive code:

  • Caller-controlled dataset size: The calling application bounds how many series and points it queries and passes to a builder. chart does not enforce arbitrary point limits that silently drop caller data.
  • Host application CSP and styling: The host application owns its Content-Security-Policy header and CSS theme tokens. chart emits only CSS custom properties in inline style attributes and relies on hml auto-escaping for all text content.
  • Local host or caller compromise: An attacker who controls the calling Go process already owns its memory and output.

There aren't any published security advisories