PackageTrack
Sign in Get early access

nelmio/security-bundle

Extra security-related features for Symfony: signed/encrypted cookies, HTTPS/SSL/HSTS handling, cookie session storage, ...

v3.9.0 14M downloads/mo #1276 most downloaded on Packagist nelmio/NelmioSecurityBundle

What this package is like to depend on

Last release 6 months ago

23 Feb 2026

Ships unpredictably

gaps range from 2 weeks to 1.7 years

Nearly every release is documented

notes for 53 of 53 stable releases

Nothing withdrawn

no release was ever pulled

14 years old

54 releases · first in 2013

4 releases in the last 12 months

see the full history below

Release timeline

54 releases · Jan 2013 to Feb 2026
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 54
  1. v3.9.0 23 Feb 2026
    Release notes

    What's Changed

    • Added PHPUnit assertions for security headers and update testing documentation by @Spomky in #389

    Full Changelog: v3.8.0...v3.9.0

    Open source →
  2. v3.8.0 14 Jan 2026
    Release notes

    What's Changed

    • Add Cross-Origin Policy feature with configurable headers (COEP, COOP, CORP) by @Spomky in #372

    Full Changelog: v3.7.0...v3.8.0

    Open source →
  3. v3.7.0 30 Dec 2025
    Release notes

    What's Changed

    • Added support for Symfony 8 #386
    • Update development dependencies to latest versions #388
    • Fixed many docs issues (#376 #375 #383 #382 #384)

    Full Changelog: v3.6.0...v3.7.0

    Open source →
  4. v3.6.0 19 Sep 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v3.5.1...v3.6.0

    Open source →
  5. v3.5.1 13 Mar 2025
    Release notes

    What's Changed

    Full Changelog: v3.5.0...v3.5.1

    Open source →
  6. v3.5.0 11 Mar 2025
    Release notes

    What's Changed

    • Added support for the report-to directive by @martijnc in #357
    • Added DirectiveSetBuilderInterface to allow runtime modification of CSP rules by @martijnc in #348
    • Fixed ExternalRedirectListener issue parsing some invalid URLs by @Seldaek in #364

    Full Changelog: v3.4.2...v3.5.0

    Open source →
  7. v3.4.2 10 Sep 2024
    Release notes

    What's Changed

    • Fix Twig version check to not depend on changing VERSION_ID constant by @glaubinix in #361

    New Contributors

    Full Changelog: v3.4.1...v3.4.2

    Open source →
  8. v3.4.1 03 Sep 2024
    Release notes

    What's Changed

    • Fix twig deprecation warning with twig 3.12 by @pscheit in #359

    Full Changelog: v3.4.0...v3.4.1

    Open source →
  9. v3.4.0 05 Jul 2024
    Release notes

    What's Changed

    • Deprecated X-Xss-Protection by @maxhelias in #342
    • Deprecated the default signed cookie algorithm by @martijnc in #355
    • Added legacy_hash_algo to support backward-compatible hash_algo changes in signed cookies by @martijnc in #351
    • Added ability to set a custom CSP request matcher to define exactly which requests should receive CSP headers by @ihmels in #241
    • Fixed DI Extension class deprecation with Symfony 7.1 by @norkunas in #350
    • Fixed compatibility with twig 3.9 and yielding by @jderusse in #344 & #353

    Full Changelog: v3.3.0...v3.4.0

    Open source →
  10. v3.3.0 10 Apr 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v3.2.0...v3.3.0

    Open source →
    Release notes
    • Added ExternalRedirectResponse (#331)
    Open source →
  11. v3.2.0 08 Mar 2024
    Release notes
    • Added support for cookies with null value (#338)
    Open source →
  12. v3.1.1 17 Jan 2024
    Release notes
    • Filter view-source reports
    Open source →
  13. v3.1.0 03 Dec 2023
    Release notes
    • Fixed overriding CSP header
    • Dropped support for Symfony < 5.4
    • Added support for Symfony 7
    Open source →
  14. v3.0.0 17 Mar 2022
    Release notes
    • Bump minimal PHP version to 7.4
    • Dropped support for Symfony < 4.4
    • Dropped support for Twig 1
    • Removed DoctrineCacheUAFamilyParser (use PsrCacheUAFamilyParser instead)
    • All classes have been marked as final
    • Renamed WhitelistBasedTargetValidator class to AllowListBasedTargetValidator
    • Removed CookieSessionHandler
    • Allowed to define host restriction for clickjacking protection
    Open source →
  15. v3.0.0-alpha.1 23 Feb 2022 pre-release

    Nothing published for this version

  16. v2.12.0 23 Feb 2022
    Release notes
    • Filter moz-extension reports
    • Log user agent along with CSP report
    • Deprecated external_redirects.whitelist option in favor of external_redirects.allow_list
    • Deprecated forced_ssl.whitelist option in favor of forced_ssl.allow_list
    • Deprecated Nelmio\SecurityBundle\ContentSecurityPolicy\Violation\Event class in favor of Nelmio\SecurityBundle\ContentSecurityPolicy\Violation\ReportEvent.
    Open source →
  17. v2.11.0 18 Jan 2022
    Release notes
    • Added support for CSP "prefetch-src" directive
      • Added support for CSP "wasm-unsafe-eval" keyword
      • Added support for Symfony 6
      • Fixed deprecations warnings using PHP 8.1
    Open source →
  18. v2.10.3 16 Mar 2021
    Release notes
    • Fix Symfony 5 compatibility issues
    Open source →
  19. v2.10.2 17 Feb 2021
    Release notes
    • Fix dependencies (allow installing on PHP 8 and explicitly require symfony/yaml)
    Open source →
  20. v2.10.1 18 Jun 2020
    Release notes
    • Fix ContentSecurityPolicyController
    Open source →
  21. v2.10.0 18 Jun 2020
    Release notes
    • Ensure compatibility with Symfony EventDispatcher 5.x
    Open source →
  22. v2.9.1 11 May 2020
    Release notes
    • Ensure passing the correct type to UAParser::parse
      • Use Symfony DI Reference instead of Definition
      • Optimize regular expressions in the sha computer
      • Show non-deprecated usage of the csp_nonce Twig function
    Open source →
  23. v2.9.0 02 Mar 2020
    Release notes
    • Symfony 5 compatibility added
      • Bump minimal Twig version to 1.38.0
    Open source →
  24. v2.8.0 02 Mar 2020
    Release notes
    • Fixed deprecated/invalid method usage on logger interface
      • Drop tests for PHP 5.4
    Open source →
  25. 2.7.0 03 Apr 2019
    Release notes
    • Use base64 for encoding nonces
      • Support more CSP level 3 keywords
      • Allow configuring a report URI for XSS
    Open source →
  26. 2.6.0 03 Apr 2019
    Release notes
    • Support random_compat v9.99.99
      • Don't ship unneeded files for composer installs
      • Change controller action reference
      • Add worker-src directive
      • Fix deprecation for symfony/config 4.2+
    Open source →
  27. 2.5.1 21 Mar 2018
    Release notes
    • Abort CSP compiler pass when CSP is not enabled
    Open source →
  28. 2.5.0 26 Feb 2018
    Release notes
    • Allows matching the query parameter for clickjacking protection
      • Cleanup content type restrictable listener
      • Added Symfony 4 support
      • Added support for 'worker-src' CSP directive
      • Removed PHP 5.3 support guarantees
      • Fix CSP noise filter compiler pass registration
    Open source →
  29. 2.4.0 22 Jun 2017
    Release notes
    • Deprecate calling ContentSecurityPolicyListener::getNonce without usage ('script' or 'style')
      • Added forced_ssl > redirect_status_code option to allow switching to permanent redirect (301) responses
      • Fixed HSTS header being sent even in non-secure responses unnecessarily
      • Fixed URLs with whitespace prefix not being seen as external redirects
    Open source →
  30. 2.3.1 17 Mar 2017
    Release notes
    • Fix arguments for Twig extension
    Open source →
  31. 2.3.0 17 Mar 2017
    Release notes
    • Add support for script-src 'strict-dynamic' (see https://w3c.github.io/webappsec-csp/#strict-dynamic-usage)
      • Improve CSP filtering
      • Remove Twig extension compiler pass in favor of tag
      • Use symfony/phpunit-bridge for testing on IC
    Open source →
  32. 2.2.4 13 Feb 2017
    Release notes
    • Fix exceptions thrown by Report::fromRequest
    Open source →
  33. 2.2.3 13 Feb 2017
    Release notes
    • Improve CSP filtering
    Open source →
  34. 2.2.2 07 Feb 2017
    Release notes
    • Improve CSP filtering
      • Fix injected script noise detector loading
    Open source →
  35. 2.2.1 07 Feb 2017
    Release notes
    • Fix dependency on UAParser
    Open source →
  36. 2.2.0 06 Feb 2017
    Release notes
    • Add CSP report filter
      • Fix Twig 2 support
    Open source →
  37. 2.1.0 26 Jan 2017
    Release notes
    • Add support for Referrer Policy
      • Content-Security-Policy header can now be disabled
      • Fix encrypter deprecation
      • Run the test suite on PHP 7.1
      • Run the test suite with lowest dependencies
    Open source →
  38. 2.0.4 19 Oct 2016
    Release notes
    • Enable manifest-src directive for Chrome, Opera and Firefox
    Open source →
  39. 2.0.3 13 Oct 2016
    Release notes
    • Fix deprecation warning with latest Twig 1.x
    Open source →
  40. 2.0.2 24 Aug 2016
    Release notes
    • Fix typo in the ALLOW-FROM implementation
      • Update browser_adaptive configuration. Allow custom adapters
      • Add Doctrine Cache and Psr Cache adapters for caching UA family parser
    Open source →
  41. 2.0.1 03 Jun 2016
    Release notes
    • Fix CookieSessionHandler::open that should return true unless there's an error
    Open source →
  42. 2.0.0 17 May 2016
    Release notes
    • Add support for Content-Security-Policy Level 2 directives
      • Add support for Content-Security-Policy Level 2 signatures (nonce and message digest)
      • Add browser adaptive directives - do not send directives not supported by browser - via browser_adaptive parameter
      • Allow report-uri to be defined as a scalar
      • Deprecate encrypted cookie support du to high coupling to mcrypt deprecated extension
      • Drop backward-compatibility with first deprecated CSP configuration
    Open source →
  43. 1.10.0 23 Feb 2016
    Release notes
    • Added ability to restrict forced_ssl capability to some hostnames only
      • Fixed Symfony 3 compatibility
    Open source →
  44. 1.9.1 17 Jan 2016
    Release notes
    • BugFix: Fix LoggerInterface type hints to support PSR-3 loggers and not only Symfony 2.0 loggers
    Open source →
  45. 1.9.0 04 Jan 2016
    Release notes
    • Add Symfony 3 compatibility
      • external_redirects definition can now contains full URL
      • Allow dynamic CSP configuration
      • BugFix: Fix clickjacking URL normalization when containing dash and no underscore
    Open source →
  46. 1.8.0 12 Sep 2015
    Release notes
    • Added HTTP response's content-type restriction for Clickjacking and CSP headers.
      • Added Microsoft's XSS-Protection support
      • Disabled Clickjacking, CSP and NoSniff headers in the context of HTTP redirects
      • Fixed bug in handling of the external_redirects.log being disabled
    Open source →
  47. 1.7.0 10 May 2015
    Release notes
    • Added a Nelmio\SecurityBundle\ExternalRedirect\TargetValidator interface to implement custom rules for the external_redirects feature. You can override the nelmio_security.external_redirect.target_validator service to change the default.
      • Added a hosts key in the CSP configuration to restrict CSP-checks to some host names
      • Fixed a bug in flexible_ssl where the auth cookie was updated with a wrong expiration time the second time the visitor comes to the site.
      • Removed X-Webkit-CSP header as none of the webkits using it are still current.
    Open source →
  48. 1.6.0 01 Feb 2015
    Release notes
    • Added a forced_ssl.hsts_preload flag to allow adding the preload attribute on HSTS headers
    Open source →
  49. 1.5.0 01 Jan 2015
    Release notes
    • Added ability to have different configs for both reported and enforced CSP rules
      • Added support for ALLOW and ALLOW-FROM syntaxes in the Clickjacking Protection
      • Added support for HHVM and PHP 5.6
      • Fixed enabling of cookie signing when the cookie list is empty
    Open source →
  50. 1.4.0 13 Feb 2014
    Release notes
    • Added default controller to log CSP violations
      • Added a flag to remove outdated non-standard CSP headers and only send the Content-Security-Policy one
    Open source →
  51. 1.3.0 07 Jan 2014
    Release notes
    • Added support for setting the X-Content-Type-Options header
    Open source →
  52. 1.2.0 29 Jul 2013
    Release notes
    • Added Content-Security-Policy (CSP) 1.0 support
      • Added forced_ssl.whitelist property to define URLs that do not need to be force-redirected
      • Fixed session loss bug on 404 URLs in the CookieSessionHandler
    Open source →
  53. 1.1.0 27 Mar 2013
    Release notes
    • Added a cookie session storage (use only if really needed, and combine it with encrypted_cookie)
      • Fixed error reporting if mcrypt is not enabled and you try to use encryption
    Open source →
  54. 1.0.0 08 Jan 2013
    Release notes
    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive