Skip to content

slash handling issue in template URI normalization #434

Closed

Description

@zzzeek

Summary

There is an inconsistency in how leading slashes are handled during URI normalization in template lookup, which can lead to incorrect path resolution.

Details will be updated when fix is provided.

Activity

  1. sqla-tester commented on Apr 14, 2026

    @sqla-tester
    Collaborator

    Mike Bayer has proposed a fix for this issue in the main branch:

    Fix path traversal via double-slash URI prefix in TemplateLookup https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/6653

  2. added a commit that references this issue on Apr 14, 2026
    e05ac61
  3. zzzeek commented on Apr 28, 2026

    @zzzeek
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglookup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions