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.
- Untrusted labels, titles, or tooltip text passed into builders that could inject HTML, SVG, or CSS into a rendered page.
- Malformed numeric inputs (such as
NaN,Inf, or degenerate ranges) that could cause panics or division by zero during rendering. - A compromised dependency in
go.modortools.mod.
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.
chartdoes not enforce arbitrary point limits that silently drop caller data. - Host application CSP and styling: The host application owns its
Content-Security-Policyheader and CSS theme tokens.chartemits only CSS custom properties in inlinestyleattributes and relies onhmlauto-escaping for all text content. - Local host or caller compromise: An attacker who controls the calling Go process already owns its memory and output.