Skip to content
This repository was archived by the owner on Feb 27, 2026. It is now read-only.
This repository was archived by the owner on Feb 27, 2026. It is now read-only.

Implement Nonce Based CSP #17

@henrym2

Description

@henrym2

Expected Behavior

Nonce based CSP (with respect to script tags) will help to reduce XSS attack surfaces on web applications built with this bundle. The amount of CSP support already built into the Symfony project is somewhat limited. Discussions remain open with regards to implementing some level of the NelmioSecurityBundle which provides CSP for symfony web applications.

This feature regardless of the level of support is non-trivial and likely will involve interfacing with the Twig templating engine to ensure that nonce replacement/insertion is handled correctly.

Steps to Implement Soltution

  • Research CSP modules in Symfony and other bundles
  • Decide on what depth CSP should be implemented in bundle
  • Research bridge between symfony and Twig
  • Construct nonce generation modules
  • Construct Template modification modules
  • Devise implementation guides

Linked

#16

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions