Skip to content

Create a Middleware that prevent Regexp in the Requests #47364

Open

Description

@bugraoz93

Description

Enhance security by eliminating regexp usage in any of the requests. Even if someone is trying to send regexp in str fields, we should return a proper error message that regexp isn't allowed.
https://fastapi.tiangolo.com/tutorial/middleware/#create-a-middleware

Use case/motivation

https://lists.apache.org/thread/xtzdp4dx8s6dds4xdp9kdpohns9lvpst

Related issues

Followup: #46971

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    area:API
    kind:feature
    security
    on Mar 4, 2025
  2. self-assigned this
    on Mar 4, 2025
  3. potiuk commented on Mar 5, 2025

    @potiuk
    Member

    Good idea !

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

Metadata

Metadata

Assignees

Labels

area:APIkind:featuresecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions