Tupik exists to make APIs harder to get wrong, so security reports get priority over feature work.
Tupik 1.2.0 is published on npm. All @tupik/* packages and create-tupik share one version, so a version
number means the same thing for every package. Security fixes land in the latest 1.x release; upgrade within
the major to get them. Versions before 1.0 are not patched.
| Version | Supported |
|---|---|
1.x (latest minor) |
yes |
0.x |
no |
unreleased main |
best effort |
Report privately through GitHub Security Advisories: github.com/CodeHamper/tupikjs/security/advisories/new.
Please do not open a public issue, pull request or discussion for a vulnerability. Include:
- the affected package and version (or commit);
- a minimal app or request that reproduces the problem;
- what an attacker gains (data read, access bypassed, crash, ...);
- any fix you have in mind.
Tupik is maintained by a small team, so these are targets, not guarantees:
| Step | Target |
|---|---|
| Acknowledge the report | 5 business days |
| First assessment (confirmed or not, severity) | 10 business days |
| Fix released for a critical or high severity issue | 30 days |
| Fix released for a medium or low severity issue | 90 days |
We coordinate the disclosure date with you, publish a GitHub advisory with a CVE when it applies, and credit you unless you prefer otherwise. If a deadline slips, we tell you why and when to expect the fix.
In scope:
- every package in
packages/(@tupik/*andcreate-tupik) and the projectscreate-tupikgenerates; - a secure default that does not hold (see below), or a documented guarantee that can be bypassed;
tupik audit,tupik fuzzortupik-lintmissing a case they document as covered;- the Agent Skill (
skills/tupik) or a documentation example that teaches an insecure pattern.
Out of scope:
- bugs in your own handlers that Tupik does not claim to catch (for example a query scoped by the wrong id);
- options that turn a protection off on purpose (
response: 'off',allowMissingSecretInDev,secure: false); - vulnerabilities in third-party dependencies or runtimes (please report them upstream; tell us if Tupik makes them reachable);
- denial of service that needs traffic volume rather than a flaw (use
rateLimit,bodyLimitandtimeout); - the content of the tupik.org site, except code examples.
These hold without configuration. A case where one does not hold is a vulnerability.
- Access: a route without
accessdoes not compile andregisterthrows; nothing is public by omission.access.owneranswers 404 to a principal that does not own the record, before the handler runs. - Input: declared
body,query,paramsandheadersare validated before the handler; failures answer 400 without internal messages. A validator that throws becomes a generic 500. JSON bodies above 1 MiB get 413. - Output: with a response schema, fields it does not declare are cut; fields classified
secretare removed from every response in every mode. - Errors: unexpected exceptions answer a generic 500; stack traces and messages are not sent unless
exposeErrorsis set. - Node driver: a
Hostheader that could change the routed path is rejected with 400. - Middleware:
rateLimitrefuses to start without a trusted client key (trustorkeyGenerator);jwtrequiresexpand a secret of at least 32 bytes;csrfbinds its token to the session and uses a__Host-cookie;corsthrows on'*'with credentials; cookies areSecure,HttpOnlyandSameSite=Lax; sessions and API keys are stored only as hashes; webhook signatures are compared in constant time;captchafails closed;tenantcannot be created withoutverify. - Logs and traces: the loggers redact credentials and cookies at any depth and mask IP addresses; traces respect the route's data classes.
- Environment:
@tupik/envrefuses to start with a missing or invalid variable and never prints secret values. - Supply chain:
@tupik/corehas zero runtime dependencies and nonode:*imports.