Azu is released from master on every green merge (see the release job in .github/workflows/crystal.yml). Security
fixes land on master and ship in the next release; they are not backported to earlier minor versions. Keep your
application on the latest release of the minor line you use (version: ~> 0.10.0 in shard.yml follows the
patch releases of 0.10) and read Breaking changes before moving to a newer minor.
| Version | Supported |
|---|---|
| latest release | yes |
| earlier releases | no: upgrade |
Please do not open a public issue for a vulnerability. Report it privately through
GitHub's private vulnerability reporting for this
repository, or by email to the maintainer listed in shard.yml.
Include what you can of: the affected component (handler, helper, Spark, the CQL bridge, ...), the version, a reproduction (a request, a template, a spec), and the impact you see.
What to expect:
- an acknowledgement within 5 working days;
- a fix or a mitigation on
masteras soon as one is ready, with a GitHub security advisory and a CVE where one applies; - credit in the advisory unless you prefer otherwise;
- a coordinated disclosure window of up to 90 days from the report, shorter once a release carries the fix.
In scope: the framework itself (src/), the Spark browser client (js/, shipped as src/azu/spark/client/azu_spark.js)
and the code Azu generates through the Azu CLI.
Out of scope: vulnerabilities in dependencies (report them to the dependency, and tell us so we can pin a fixed version),
the playground and benchmark applications, and findings that need a misconfiguration the documentation warns against
(for example running with CRYSTAL_ENV unset on a public interface, or TEMPLATE_AUTOESCAPE=false).
startrefuses to boot a misconfigured server before it binds a port:CRYSTAL_ENVunset on a non-loopback host,SSL_CERTwithoutSSL_KEY, or a missing variable named withAzu::Env.require_at_bootin production or staging.Azu::Env.secret(CSRF_SECRET,SPARK_SECRET) raises there too instead of falling back to a random key.- The default handler stack sends
X-Content-Type-Options,X-Frame-Options,Referrer-Policy,Permissions-Policy,Cross-Origin-Opener-Policy,Cross-Origin-Resource-Policy, andStrict-Transport-Securityon the requests served over TLS; it logs with a request id and never shows a backtrace outside development. Handler::CSRFsigns its tokens with HMAC-SHA256, compares them in constant time, refuses state-changing requests from another origin, and never reads a token from the query string.Handler::Throttlerate-limits by the connection's address, with shared counters in Redis when asked.X-Forwarded-*headers are believed only fromTRUSTED_PROXIES.- Templates are autoescaped,
inline_svgreads only the asset directory, bodies, uploads, parameter counts and slow clients are limited, and WebSocket channels check theOrigin, cap message size and subscriptions, and drop idle peers. See Configure production and Built-in handlers.