Skip to content

Commit

Permalink
Warn for possible ReDoS (#200)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Apr 22, 2024
1 parent f936f93 commit 64a8609
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -160,6 +160,12 @@ async function subsystem (fastify, opts) {
}
```

#### :warning: potential ReDoS attacks

Middie use [`path-to-regexp`](http://npm.im/path-to-regexp) to convert paths to regular expressions.
This might cause potential [ReDoS](https://en.wikipedia.org/wiki/ReDoS) attacks in your applications if
certain patterns are used. Use it with care.

# Middie Engine

You can also use the engine itself without the Fastify plugin system.
Expand Down

0 comments on commit 64a8609

Please sign in to comment.