Skip to content

Releases: paragonie/csp-builder

Version 3.0.1

08 May 13:07
v3.0.1
Compare
Choose a tag to compare
  • #77 - prevent duplicate policies
  • Updated dependencies

Version 3.0.0

18 Dec 14:22
v3.0.0
Compare
Choose a tag to compare

What's Changed

  • PHP <7.4 is not supported in this new major version!
    • The changes in #70 created a dependency conflict with PHP <7.4.
  • Add a CSP header parser (CSPBuilder::fromHeader) by @fritzmg in #74
  • un-deprecate frame-src by @fritzmg in #76
  • Generate nonce also when only default-src policy is applied by @fritzmg in #65
  • Add PoC of report-to header by @Firesphere in #70

Full Changelog: v2.9.0...v3.0.0

Version 2.9.0

24 May 14:49
v2.9.0
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.8.1...v2.9.0

Version 2.8.1

26 Mar 17:05
v2.8.1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.8.0...v2.8.1

Version 2.8.0

15 Dec 03:53
v2.8.0
Compare
Choose a tag to compare

Prevent semicolon or CLRF injection. See 1a1a85f for details.

CSP-Builder is a developer tool. It is not meant to be used with user input.

However, the ability to inject CSP directives or additional headers violates the principle of least astonishment.

This was reported via user demonia on HackerOne.

Version 2.7.0

01 Oct 19:19
v2.7.0
613c0d2
Compare
Choose a tag to compare
  • CI: Build/test on PHP 8.2
  • Add support for "unsafe-hashes" directive

Version 2.6.0

07 Sep 20:46
v2.6.0
Compare
Choose a tag to compare
  • #56 You can now save policies as JSON strings or to disk (reported in #39)
  • #55 Allow hooks before writing output to disk
  • #54 Allow https: scheme sources
  • #51 Allow sample report directive
  • Fixed #23 -- duplicate directives are now prevented
  • Implemented #52

Version 2.5.0

02 Sep 14:55
v2.5.0
73ebd90
Compare
Choose a tag to compare
  • Consistently invalidate the compiled CSP cache.
  • Update PHPUnit, etc.
  • Dropped support for PHP 7.0. You can continue to install 2.4.0, but we will not be backporting patches into the old version. PHP 7.0 is EOL, please upgrade to 7.4 or newer.

Version 2.4.0

19 Oct 14:02
v2.4.0
Compare
Choose a tag to compare
  • #42 - In Chrome 76, this library's behavior with report-to does not work. Specifically, you cannot pass a URL as a report-to directive or Chrome will never send CSP reports, even if there is also a report-uri fallback. @iangcarroll provided a pull request that fixes this behavior.

Version 2.3.0

20 Nov 16:22
v2.3.0
Compare
Choose a tag to compare
  • #21 - Add always clause to nginx header. Thanks @alainwolf
  • #17 - Add support for blob:, filesystem:, and data: URIs.
  • Added CSPBuilder::fromArray() because its absence seemed confusing if you're not familiar with the constructor.
  • Minor documentation improvements. Not nearly enough to close #18, though.