v5.4.3
Changed 1
- Corrected the UseEscapedPathForMatching documentation without changing its behavior
Fixed 2
- Path parameters are now decoded only once when UnescapePathParamValues is enabled, preserving literal percent-containing values behavior changed · inferred, marked in the notes below
- Correctly escaped filenames and static prefixes such as /assets* are now preserved
Security 2
- Fixed a static route-guard bypass involving encoded empty path segments in non-default path-matching or unescaping configurations, which could allow access to protected files inside a static root
- Static route validation now checks raw and decoded request paths and wildcard boundaries, including singly and doubly encoded leading slashes and guarded directory indexes
1 change to check, marked in the notes below
From Echo
Security
Upgrade to v5.4.3 to fix a static route-guard bypass involving encoded empty path segments in non-default path-matching or unescaping configurations. The confirmed impact is access to protected files inside a static root. The fix validates raw and decoded request paths and wildcard boundaries, including singly and doubly encoded leading slashes and guarded directory indexes.
Advisory: https://github.com/labstack/echo/security/advisories/GHSA-v97q-3xf5-rj74
Fixes
- Decode path parameters only once when
UnescapePathParamValuesis enabled, preserving literal percent-containing values. behavior changed · inferred - Correct
UseEscapedPathForMatchingdocumentation without changing its behavior. - Preserve correctly escaped filenames and static prefixes such as
/assets*.
Thanks to MyWorld319 for the static bypass report and alexreid for the parameter-decoding report.
Documentation
- Publish v4 support dates and the Echo Support offer (#3193).
- Mention Echo Pro in the Sponsors section (#3192).
Full Changelog: https://github.com/labstack/echo/compare/v5.4.2...v5.4.3