Skip to content

v7.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Jun 11:47
65e2b48

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