Skip to content

feat(common,core,fastify): built-in CSRF protection and security headers - #17836

Merged
kamilmysliwiec merged 2 commits into
masterfrom
feat/csrf-security-headers
Sep 22, 2026
Merged

kamilmysliwiec merged 2 commits into
masterfrom
feat/csrf-security-headers

Conversation

@kamilmysliwiec

Copy link
Copy Markdown
Member

PR Checklist

Please check if your PR fulfills the following requirements:

Docs will be added in nestjs/docs.nestjs.com (Security → CSRF Protection and Helmet pages).

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Nest has no built-in CSRF protection or security headers. The docs point to third-party packages, with a different setup for each adapter:

  • CSRF: csrf-csrf (Express) or @fastify/csrf-protection (Fastify). Both are token schemes that need cookies, sessions and client changes.
  • Headers: helmet (Express) or @fastify/helmet (Fastify), registered as middleware or as a plugin.

Issue Number: N/A

What is the new behavior?

Two opt-in methods that work the same on Express and Fastify, with no new dependency. There are two commits, one per feature.

const app = await NestFactory.create(AppModule);
app.setGlobalPrefix('api');

app.useSecurityHeaders(); // helmet 8 defaults, including a CSP
app.enableCsrfProtection({
  trustedOrigins: ['https://admin.example.com'],
  exclude: [{ path: 'webhooks/stripe', method: RequestMethod.POST }], // -> POST /api/webhooks/stripe
});

await app.listen(3000);
app.useSecurityHeaders({
  xFrameOptions: false,
  strictTransportSecurity: { maxAge: 63072000, preload: true },
  contentSecurityPolicy: {
    directives: { scriptSrc: ["'self'", 'https://cdn.example.com'], upgradeInsecureRequests: null },
  },
});
  • A rejected request becomes a ForbiddenException, so exception filters (for example Problem Details) shape the 403.
  • Options are validated when the method is called, so a bad configuration fails at startup. Both methods throw if they are called after app.init(), called twice, or used with an adapter that lacks support.
  • Both features run in one request hook. The core builds the hook, and adapters install it through a new optional HttpServer.registerSecurityHook():
    • Express: the AbstractHttpAdapter default, a use() middleware.
    • Fastify: an onRequest hook, whose headers go to reply.raw.
  • The hook always writes the headers before the CSRF check runs, whichever method is called first. So 403s carry the headers. It runs before Nest middleware, body parsing, guards and handlers, and also for 404s.

Does this PR introduce a breaking change?

  • Yes
  • No

Both features are opt-in, and nothing changes until one of the methods is called. The PR adds members to existing contracts:

  • INestApplication.enableCsrfProtection() / useSecurityHeaders().
  • HttpServer.registerSecurityHook(), which is optional.
  • AbstractHttpAdapter.registerSecurityHook(), which has a default implementation.

Only hand-written INestApplication implementations, such as mocks, would need the new methods.

Other information

CSRF algorithm. It follows Go 1.25's net/http.CrossOriginProtection:

  1. GET, HEAD and OPTIONS are allowed. The method comparison is case-sensitive.
  2. Sec-Fetch-Site: same-origin or none is allowed. Any other value is rejected.
  3. If neither Sec-Fetch-Site nor Origin is present, the request is allowed. It comes from a non-browser client.
  4. Otherwise, the host of Origin must match the request authority. The authority is :authority on HTTP/2 and Host otherwise. X-Forwarded-Host is ignored. The comparison is case-insensitive, and the default port of the scheme is ignored, so https://a.com matches a.com:443.
  5. Exemptions are checked only when a request would be rejected. A request is exempt if it matches an excluded route (or the predicate), or if its Origin equals a trusted origin. Trusted origins are validated like Go's AddTrustedOrigin and also reject wildcards.

Route exclusions. They are declared like MiddlewareConsumer.exclude() and resolved at app.init(). The global prefix is added (unless the route is excluded from it), and so is the URI version from RouteInfo.version. Unlike exclude(), the match is exact, because a lenient match would let a request reach a route that is not excluded:

  • Matching is case-sensitive. Fastify routes /hooks/GITHUB to /hooks/:provider.
  • There is no optional trailing slash. Fastify routes /hooks/github/ to /hooks/github/:event with an empty event.
  • Non-canonical paths never match: //, dot segments, ;, #, \, and encoded ., / or \. Such requests go through the check, so the protection fails closed.

This addresses the same class of issue as Go's CVE-2025-47910 fix.

Headers. The default values are byte-identical to helmet 8.3.0 on both adapters. @Header() still overrides a header per route. CSP values may only contain printable ASCII without ; or ,. Keywords, nonces and hashes must be quoted. Unknown options, and helmet's legacy aliases such as hsts, are rejected.

Header Default Option
Content-Security-Policy default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests contentSecurityPolicy (directives, useDefaults, reportOnly)
Cross-Origin-Embedder-Policy not sent crossOriginEmbedderPolicy
Cross-Origin-Opener-Policy same-origin crossOriginOpenerPolicy
Cross-Origin-Resource-Policy same-origin crossOriginResourcePolicy
Origin-Agent-Cluster ?1 originAgentCluster
Referrer-Policy no-referrer referrerPolicy
Strict-Transport-Security max-age=31536000; includeSubDomains strictTransportSecurity
X-Content-Type-Options nosniff xContentTypeOptions
X-DNS-Prefetch-Control off xDnsPrefetchControl
X-Download-Options noopen xDownloadOptions
X-Frame-Options SAMEORIGIN xFrameOptions
X-Permitted-Cross-Domain-Policies none xPermittedCrossDomainPolicies
X-XSS-Protection 0 xXssProtection
X-Powered-By removed xPoweredBy

Limitations

  • CSRF is not a token scheme. It relies on Sec-Fetch-Site, which browsers send only to HTTPS or localhost, or on Origin. State-changing GET handlers are not protected.
  • Like Go, the Origin/Host fallback does not know the scheme, so an HTTP→HTTPS request fails open. HSTS mitigates this.
  • Behind a proxy that rewrites Host, browsers that do not send Sec-Fetch-Site hit the fallback and get a 403. The fix is to preserve Host or to add the public origin to trustedOrigins.
  • Origins allowed by CORS are not trusted automatically.
  • A 403 does not carry CORS headers when CORS is registered after the hook, as with the cors app option.
  • Middleware registered with app.use() before the first of the two calls runs first. Responses that such middleware ends do not carry the headers.
  • Fastify: exclusions match the URL before rewriteUrl, as MiddlewareConsumer.exclude() does. reply.removeHeader() cannot remove a default header, but @Header() and reply.header() can override one.
  • WebSocket upgrades are not covered.

Follow-ups

  • Per-request CSP nonces, so that 'strict-dynamic' policies do not need 'unsafe-inline'.
  • A double-submit token option for clients without Fetch Metadata. It depends on the cookies work.
  • Per-route overrides: a @SkipCsrfProtection() decorator and relaxing CSP only for routes like /docs or /graphql.
  • csrfProtection / securityHeaders flags in NestApplicationOptions, like cors.
  • An Origin check for WebSocket gateways.
  • Optional support for X-Forwarded-Host behind trusted proxies.

🤖 Generated with Claude Code

kamilmysliwiec and others added 2 commits September 22, 2026 10:28
Add built-in protection against cross-site request forgery based on
Fetch Metadata, following the algorithm of Go's net/http
CrossOriginProtection: GET, HEAD and OPTIONS are always allowed;
otherwise Sec-Fetch-Site must be same-origin or none, and when the
browser did not send it, the Origin host must match the request
authority (Host, or :authority on HTTP/2; X-Forwarded-Host is ignored).
Requests without either header (non-browser clients) are allowed.
Trusted origins and excluded routes (or a predicate) exempt requests
that would otherwise be rejected.

Excluded routes are declared like MiddlewareConsumer.exclude() and
resolved at app.init() with the global prefix and URI versioning, but
they match exactly: case-sensitively, without an optional trailing
slash, and never for non-canonical paths (dot segments, "//", ";",
encoded "/" or "."), which Express or Fastify could route to a handler
that is not excluded.

The decision logic lives in @nestjs/core and runs in a single request
hook that the adapter installs through the new, optional
HttpServer.registerSecurityHook(): the AbstractHttpAdapter default
registers it with use() (Express), and the Fastify adapter uses an
onRequest hook, so it runs before Nest middleware, body parsing, guards
and handlers, also for unmatched routes. Rejections become a
ForbiddenException handed to the exception layer, so exception filters
shape the 403. Calling it after app.init(), twice, or on an adapter
without support throws instead of silently leaving routes unprotected.

This is not a token scheme; a double-submit cookie option is a
follow-up.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Add built-in security response headers, equivalent to helmet 8's
defaults, without a third-party dependency: a default
Content-Security-Policy, Cross-Origin-Opener-Policy,
Cross-Origin-Resource-Policy, Origin-Agent-Cluster, Referrer-Policy,
Strict-Transport-Security, X-Content-Type-Options,
X-DNS-Prefetch-Control, X-Download-Options, X-Frame-Options,
X-Permitted-Cross-Domain-Policies and X-XSS-Protection: 0, and removal
of X-Powered-By. Option names match helmet's: each header accepts false
to leave it out, true for the default, or an object.

Options are validated once, when the method is called: unknown options
(including helmet's legacy aliases such as "hsts") and values of the
wrong type are rejected. Content-Security-Policy directives are merged
with the defaults (useDefaults), can be sent as Report-Only, and are
serialized safely: directive names must be tokens, values may only
contain printable ASCII without ";" or ",", and keywords, nonces and
hashes must be quoted, so configuration cannot inject directives,
policies or headers, nor fail at request time.

The headers are written by the request hook shared with
app.enableCsrfProtection(), before the CSRF check, so they are present
on every response, 404s, errors and CSRF rejections included, whichever
method is called first. On Fastify they go to reply.raw, so @Header()
still overrides them per route and @sse() streams carry them too.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@kamilmysliwiec
kamilmysliwiec merged commit 555c2ce into master Sep 22, 2026
5 checks passed
kamilmysliwiec added a commit to nestjs/docs.nestjs.com that referenced this pull request Sep 23, 2026
Lead the CSRF Protection page with app.enableCsrfProtection() and the
Helmet page, retitled Security headers, with app.useSecurityHeaders()
(nestjs/nest#17836). The csrf-csrf / @fastify/csrf-protection and
helmet / @fastify/helmet setups remain as alternative sections. The
/security/helmet route is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
kamilmysliwiec added a commit to nestjs/docs.nestjs.com that referenced this pull request Sep 23, 2026
#3542)

* docs(security): document built-in csrf protection and security headers

Lead the CSRF Protection page with app.enableCsrfProtection() and the
Helmet page, retitled Security headers, with app.useSecurityHeaders()
(nestjs/nest#17836). The csrf-csrf / @fastify/csrf-protection and
helmet / @fastify/helmet setups remain as alternative sections. The
/security/helmet route is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(openapi): point the swagger csp note at the built-in security headers

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* docs(security): link versioning at its new address

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
ttt43ttt pushed a commit to NoDevelopers/ts-monorepo that referenced this pull request Nov 22, 2026
| datasource | package                  | from   | to     |
| ---------- | ------------------------ | ------ | ------ |
| npm        | @nestjs/common           | 12.0.1 | 12.1.0 |
| npm        | @nestjs/core             | 12.0.1 | 12.1.0 |
| npm        | @nestjs/platform-express | 12.0.1 | 12.1.0 |


## [v12.1.0](https://github.com/nestjs/nest/releases/tag/v12.1.0)

##### v12.1.0 (2026-09-23)

##### Bug fixes

- `core`
  - [#17838](nestjs/nest#17838) fix(core): inherit optional ctor params when the ctor is not redeclared ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
  - [#17819](nestjs/nest#17819) fix(core): name the module when metadata entries are invalid ([@thekhegay](https://github.com/thekhegay))
- `microservices`
  - [#17828](nestjs/nest#17828) fix(microservices): let the redis client retry after a failed connect ([@hktitof](https://github.com/hktitof))
  - [#17810](nestjs/nest#17810) fix(microservices): fail every pending request when a callback throws ([@hktitof](https://github.com/hktitof))

##### Enhancements

- `core`
  - [#17846](nestjs/nest#17846) fix(core): do not skip subsequent middleware after a transient one ([@lehafari](https://github.com/lehafari))
  - [#17840](nestjs/nest#17840) fix(core): preserve route handler names ([@Grmiade](https://github.com/Grmiade))
- `common`, `core`
  - [#17713](nestjs/nest#17713) feat(core): add support for array of global prefixes ([@micalevisk](https://github.com/micalevisk))
  - [#17834](nestjs/nest#17834) feat(common,core): add built-in, adapter-agnostic cookies ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- `platform-fastify`
  - [#17824](nestjs/nest#17824) fix(fastify): honor Nest forceCloseConnections in initHttpServer ([@xia-chao](https://github.com/xia-chao))
- `common`
  - [#17827](nestjs/nest#17827) fix(common): apply the ParseDatePipe default to every missing value ([@xia-chao](https://github.com/xia-chao))
- `platform-fastify`, `testing`
  - [#17835](nestjs/nest#17835) feat(fastify): add file upload interceptors backed by [@fastify/multipart](https://github.com/fastify/multipart) ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- `common`, `core`, `platform-fastify`
  - [#17836](nestjs/nest#17836) feat(common,core,fastify): built-in CSRF protection and security headers ([@kamilmysliwiec](https://github.com/kamilmysliwiec))

##### Committers: 9

- Abdellatif Anaflous ([@hktitof](https://github.com/hktitof))
- Alejandro ([@lehafari](https://github.com/lehafari))
- Chris Z ([@haimingZZ](https://github.com/haimingZZ))
- Johnny J. Huirilef Millán ([@johnnyhuirilef](https://github.com/johnnyhuirilef))
- Jérémy Fauvel ([@Grmiade](https://github.com/Grmiade))
- Kamil Mysliwiec ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- Micael Levi L. Cavalcante ([@micalevisk](https://github.com/micalevisk))
- Roman Khegay ([@thekhegay](https://github.com/thekhegay))
- Xia Chao ([@xia-chao](https://github.com/xia-chao))


## [v12.0.4](https://github.com/nestjs/nest/releases/tag/v12.0.4)

##### v12.0.4 (2026-09-21)

##### Bug fixes

- `microservices`
  - [#17816](nestjs/nest#17816) fix(microservices): let the kafka client retry after a failed connect ([@Xch4rt](https://github.com/Xch4rt))
  - [#17786](nestjs/nest#17786) fix(microservices): fail pending rmq requests on client close ([@johnnyhuirilef](https://github.com/johnnyhuirilef))
  - [#17802](nestjs/nest#17802) fix(microservices): fail pending nats requests on client close ([@hktitof](https://github.com/hktitof))
  - [#17803](nestjs/nest#17803) fix(microservices): handle missing grpc package namespace gracefully ([@Se3do](https://github.com/Se3do))
  - [#17799](nestjs/nest#17799) fix(microservices): share the processing hook envelope across transports ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
  - [#17797](nestjs/nest#17797) fix(microservices): close the kafka request-response span exactly once ([@MingLin1995](https://github.com/MingLin1995))
  - [#17794](nestjs/nest#17794) fix(microservices): close the request-response span exactly once ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
  - [#17785](nestjs/nest#17785) fix(microservices): route message handler rejections to handleError ([@hktitof](https://github.com/hktitof))
- `core`
  - [#17821](nestjs/nest#17821) fix(core): hang on sparse factory inject array ([@xia-chao](https://github.com/xia-chao))

##### Enhancements

- `platform-express`
  - [#17818](nestjs/nest#17818) Fix: merge multer `limits` key-by-key instead of overriding it wholesale ([@mdrezuanislamridoy](https://github.com/mdrezuanislamridoy))
- `common`
  - [#17780](nestjs/nest#17780) fix(common): mark parse date pipe options as optional ([@Chy-Zaber-Bin-Zahid](https://github.com/Chy-Zaber-Bin-Zahid))

##### Dependencies

- `common`
  - [#17793](nestjs/nest#17793) fix(deps): update dependency file-type to v22.1.1 ([@renovate\[bot\]](https://github.com/apps/renovate))
- `platform-fastify`
  - [#17791](nestjs/nest#17791) fix(deps): update dependency fastify to v5.12.5 ([@renovate\[bot\]](https://github.com/apps/renovate))

##### Committers: 10

- Abdellatif Anaflous ([@hktitof](https://github.com/hktitof))
- Chowdhury Zaber Bin Zahid ([@Chy-Zaber-Bin-Zahid](https://github.com/Chy-Zaber-Bin-Zahid))
- Imad - Prakticode ([@prakticode](https://github.com/prakticode))
- Johnny J. Huirilef Millán ([@johnnyhuirilef](https://github.com/johnnyhuirilef))
- Kamil Mysliwiec ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- MD. Ridoy Babu ([@mdrezuanislamridoy](https://github.com/mdrezuanislamridoy))
- Ming ([@MingLin1995](https://github.com/MingLin1995))
- Mohammed Said ([@Se3do](https://github.com/Se3do))
- Pablo Gutiérrez ([@Xch4rt](https://github.com/Xch4rt))
- Xia Chao ([@xia-chao](https://github.com/xia-chao))


## [v12.0.3](https://github.com/nestjs/nest/releases/tag/v12.0.3)

##### v12.0.3 (2026-09-15)

##### Bug fixes

- `microservices`
  - [#17766](nestjs/nest#17766) fix(microservices): always run the kafka processing end hook ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
  - [#17757](nestjs/nest#17757) fix(microservices): fail pending requests on client close ([@hktitof](https://github.com/hktitof))
  - [#17746](nestjs/nest#17746) fix(microservices): bound memory held for a TCP peer ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
  - [#17745](nestjs/nest#17745) fix(microservices): destroy open TCP sockets on shutdown ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- `common`
  - [#17738](nestjs/nest#17738) fix(common): validate uuid version and variant when no version is set ([@otnc](https://github.com/otnc))
  - [#17761](nestjs/nest#17761) fix(common): invoke proto-key stripping hook via this in transform ([@koreahghg](https://github.com/koreahghg))

##### Dependencies

- `platform-express`
  - [#17762](nestjs/nest#17762) fix(deps): update dependency multer to v2.4.0 ([@renovate\[bot\]](https://github.com/apps/renovate))
- `common`
  - [#17753](nestjs/nest#17753) fix(deps): update dependency file-type to v22.1.0 ([@renovate\[bot\]](https://github.com/apps/renovate))

##### Committers: 4

- Abdellatif Anaflous ([@hktitof](https://github.com/hktitof))
- Kamil Mysliwiec ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- otoneko. ([@otnc](https://github.com/otnc))
- 한국 ([@koreahghg](https://github.com/koreahghg))


## [v12.0.2](https://github.com/nestjs/nest/releases/tag/v12.0.2)

##### v12.0.2 (2026-09-14)

##### Bug fixes

- `platform-socket.io`, `platform-ws`
  - [#17666](nestjs/nest#17666) fix(socket.io): keep the message stream alive when a handler throws ([@hktitof](https://github.com/hktitof))
- `microservices`
  - [#17728](nestjs/nest#17728) fix(microservices): detach signal listeners of connected microservices ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
  - [#17671](nestjs/nest#17671) fix(microservices): fail requests whose reply subscription is rejected ([@samuelmbabhazi](https://github.com/samuelmbabhazi))
  - [#17670](nestjs/nest#17670) fix(microservices): do not treat foreign JSON as an RPC envelope ([@xia-chao](https://github.com/xia-chao))
  - [#17644](nestjs/nest#17644) fix(microservices): don't flatten plain handler results with pre-request hooks ([@iamolegga](https://github.com/iamolegga))
  - [#17641](nestjs/nest#17641) fix(microservices): run the mqtt listen callback once ([@johnnyhuirilef](https://github.com/johnnyhuirilef))
- `common`
  - [#17710](nestjs/nest#17710) fix(common): collapse duplicate internal slashes in `normalizePath` ([@Asadshah7950](https://github.com/Asadshah7950))
  - [#17655](nestjs/nest#17655) fix(common): validate UUID v3 variant ([@gwagjiug](https://github.com/gwagjiug))
  - [#17702](nestjs/nest#17702) fix(common): treat empty string as array input in ParseArrayPipe ([@xia-chao](https://github.com/xia-chao))
- `core`
  - [#17667](nestjs/nest#17667) fix(core): discover factory providers with discovery decorators ([@hktitof](https://github.com/hktitof))
  - [#17709](nestjs/nest#17709) fix(core): avoid treating error instances with `statusCode` as http errors ([@Asadshah7950](https://github.com/Asadshah7950))
  - [#17625](nestjs/nest#17625) fix(core): clean up repeated shutdown signal listeners ([@Raj4478](https://github.com/Raj4478))
- `platform-fastify`
  - [#17705](nestjs/nest#17705) fix(fastify): derive neutral version when accept header is absent ([@Gaurav1112](https://github.com/Gaurav1112))
  - [#17699](nestjs/nest#17699) fix(fastify): send responses for exceptions thrown from middleware ([@micalevisk](https://github.com/micalevisk))

##### Enhancements

- `microservices`
  - [#17734](nestjs/nest#17734) feat(microservices): add maxConnectionAttempts to ServerMqtt ([@kamilmysliwiec](https://github.com/kamilmysliwiec))

##### Dependencies

- `platform-fastify`
  - [#17729](nestjs/nest#17729) fix(deps): update dependency fastify to v5.12.4 ([@renovate\[bot\]](https://github.com/apps/renovate))

##### Committers: 16

- Abdellatif Anaflous ([@hktitof](https://github.com/hktitof))
- Alexey Solovyov ([@lyohaplotinka](https://github.com/lyohaplotinka))
- Asad Ali Shah ([@Asadshah7950](https://github.com/Asadshah7950))
- Gyeonghun Park ([@Gyeonghun-Park](https://github.com/Gyeonghun-Park))
- Johnny J. Huirilef Millán ([@johnnyhuirilef](https://github.com/johnnyhuirilef))
- Kamil Mysliwiec ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- Kumar Gaurav ([@Gaurav1112](https://github.com/Gaurav1112))
- Micael Levi L. Cavalcante ([@micalevisk](https://github.com/micalevisk))
- Ming ([@MingLin1995](https://github.com/MingLin1995))
- Mohammed Said ([@Se3do](https://github.com/Se3do))
- Rajeshwar Singh  ([@Raj4478](https://github.com/Raj4478))
- Xia Chao ([@xia-chao](https://github.com/xia-chao))
- [@iamolegga](https://github.com/iamolegga)
- cui fliter ([@cuishuang](https://github.com/cuishuang))
- samuel mbabhazi ([@samuelmbabhazi](https://github.com/samuelmbabhazi))
- 곽지욱 ([@gwagjiug](https://github.com/gwagjiug))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant