Please report security issues privately through GitHub security advisories rather than a public issue. Include the affected version, a minimal reproduction, and the impact you expect. You should get a reply within a week; fixes are released as a patch version with a changelog entry.
Affe is pre-1.0. Fixes land on the latest 0.x release only.
- Escaping. Strings rendered as children or attributes are escaped, on
the client and during SSR. Markup is only interpreted through the branded
SafeHtml.make(...). - Cross-site request forgery.
ServerRoute.execute/dispatchrefuse state-changing requests that a browser marks as coming from another site (see "Cross-Site Request Protection" indocs/router.md). Hand-routed POST endpoints can callServerRoute.checkOrigin(request). - Serialized state. Loader data and resume payloads embedded in pages
are escaped for
<script>contexts. - Agent tools. The MCP adapter (
@doeixd/affe-ui-agent) refuses tool calls without authentication unless you passauth: "none", and agent governance (approval, audit) fails closed.
- Authentication and authorization. A route guard protects its page and
loaders, including during server rendering, but your data endpoints
(
ServerRoutehandlers, single-flight handlers) are separate requests and need their own checks. - Validating input you do not decode through a Schema.
- A Content Security Policy. Streaming SSR and resumability emit inline
scripts; pass a
noncewhere the API accepts one.