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: labstack/echo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a6a9673
Choose a base ref
...
head repository: labstack/echo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7c312e0
Choose a head ref
  • 3 commits
  • 5 files changed
  • 3 contributors

Commits on Oct 22, 2026

  1. Configuration menu
    Copy the full SHA
    0996992 View commit details
    Browse the repository at this point in the history
  2. fix(middleware): reject empty tokens in CSRF validation (#3135)

    subtle.ConstantTimeCompare treats two empty byte slices as equal, so
    validateCSRFToken("", "") returns true. Extractors in extractor.go
    treat a present-but-empty query/form/header value as successfully
    extracted, so an attacker can supply an empty client token with no
    special access. If the stored cookie token is ever empty (e.g. an
    app clears it to "" instead of expiring it, or CookieSecure is false
    and the cookie is overwritten over plain HTTP), CSRF validation is
    bypassed entirely. Reject empty tokens before the comparison.
    hoangtaiki authored Oct 22, 2026
    Configuration menu
    Copy the full SHA
    f9d7e77 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2026

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