Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cakephp/cakephp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.6.4
Choose a base ref
...
head repository: cakephp/cakephp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.6.5
Choose a head ref
  • 4 commits
  • 13 files changed
  • 1 contributor

Commits on Jun 29, 2026

  1. 4.x - Strip CRLF from message headers in SmtpTransport (#19513)

    * Strip CRLF from message headers in SmtpTransport
    
    Strip CRLF bytes from message headers when delivering mail by
    SmtpTransport. This prevents header injection should userland code
    supply user data into messages headers.
    
    Thank you to Himanshu Anand for reporting this issue.
    
    * Fix failing test from previous fix
    
    * Fix php incompatibility.
    markstory authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    0818896 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2026

  1. 4.x - Fix parameter handling in FunctionsBuilder (#19520) (#19528)

    Fix parameter handling in FunctionsBuilder (#19520)
    
    Fix weakness in FunctionsBuilder
    
    Several methods did not explicity label their parameters as unsafe, so
    it is possible for an application developer to mistakenly supply user
    controlled data into these parameters creating a SQL injection vector.
    
    Thank you to Himanshu Anand for reporting this issue.
    
    Backport #19520 to 4.x
    markstory authored Jul 3, 2026
    Configuration menu
    Copy the full SHA
    79e1d6b View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2026

  1. 4.x - Handle %2f in routing more consistently (#19539)

    Handle %2f in routing more consistently
    
    Currently path prefix matching does not treat %2f as /, and `Route` has
    an option for it. In the past we've made changes in this area
    (#18050, #16110) to make urldecoding optional, and to intentionally
    decode urlencoding in path segments to support non-ascii applications.
    
    We got a report on the security list for a potential issue where *if*
    an application enforced authorization within path prefixed scopes, and
    had fallback routes enabled, then one could potentially bypass the scoped
    middleware and hit the fallback routes which inconsistently handle %2f.
    
    These changes align the behavior of urldecoding between RouteCollection
    and Route with a new shared internal function. I thought a function was
    better than exposing a static method on a public class.
    
    Thanks to Rotem Reiss for reporting this issue.
    markstory authored Jul 14, 2026
    Configuration menu
    Copy the full SHA
    40d9023 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2026

  1. Configuration menu
    Copy the full SHA
    2818927 View commit details
    Browse the repository at this point in the history
Loading