Skip to content

Releases: github/secure_headers

v7.3.0

03 Jun 11:47
65e2b48

Choose a tag to compare

Security

  • CSP directive injection via sandbox, plugin-types, and report-to when given untrusted inputGHSA-rqq5-2gf9-4w4q. Reported by @tonghuaroot. The 2020 source-list scrub was not applied to the sandbox, plugin-types, and report-to directive builders, so caller-supplied values containing ;, \n, or \r were emitted verbatim into the Content-Security-Policy header and could inject arbitrary directives. All three builders now share the same scrub (replace ;, \n, \r with a space and Kernel.warn).

Important

You should never pass user-supplied input into your Content-Security-Policy configuration. CSP directive values are part of a security policy, not user data — any untrusted input creates a policy-injection risk. This fix is a defense-in-depth backstop; it is not a license to feed user input into CSP directives. Treat all CSP values as trusted, application-controlled configuration.

What's Changed

Full Changelog: v7.2.0...v7.3.0

v7.2.0

20 Feb 20:39
f224144

Choose a tag to compare

Release notes

What's Changed

Full Changelog: v7.1.0...v7.2.0

v7.1.0

16 Dec 19:22
10e41fa

Choose a tag to compare

Release notes

What's Changed

New Contributors

Full Changelog: v7.0.0...v7.1.0

v7.0.0

16 Oct 17:32
bac6dae

Choose a tag to compare

Release notes

What's Changed

  • Update default X-XSS-Protection value to 0 by @rzhade3 in #479

New Contributors

Full Changelog: v6.7.0...v7.0.0

Increase performance of SecureSecurityPolicyConfig

15 Aug 17:41
7a23cb6

Choose a tag to compare

What's Changed

  • Make SecureSecurityPolicyConfig significantly faster by @jhawthorn in #506
  • Note: If you are accessing values on SecureSecurityPolicyConfig as ivars, you will need to change this to hash access.

New Contributors

Full Changelog: v6.6.0...v6.7.0

v6.6.0

19 Jul 12:05
ff9797f

Choose a tag to compare

v6.5.0

24 Oct 19:09
0678a74

Choose a tag to compare

v6.5.0 (#501)

Release notes:

- CSP: Remove source expression deduplication. (@lgarron)
https://github.com/github/secure_headers/pull/499

v6.4.0

02 Aug 19:44
084f517

Choose a tag to compare

  • CSP: Add support for trusted-types, require-trusted-types-for directive (@JackMc): #486

https://github.com/github/secure_headers/blob/v6.4.0/CHANGELOG.md

v6.3.4

27 Jun 22:59
6b52428

Choose a tag to compare

  • CSP: Do not deduplicate alternate schema source expressions (@keithamus): #478

https://github.com/github/secure_headers/blob/v6.3.4/CHANGELOG.md

v6.3.3

05 May 21:35
e4a198c

Choose a tag to compare

  • Fix hash generation for indented helper methods (@rahearn)

For more details, see https://github.com/github/secure_headers/blob/v6.3.3/CHANGELOG.md