Skip to content

Commit 78c47a2

Browse files
authored
fix: add note about security
1 parent 2cde11e commit 78c47a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ Install using npm:
6363
$ npm install express-handlebars
6464
```
6565

66+
## Danger 🔥
67+
68+
Never put objects on the `req` object straight in as the data, this can allow hackers to run XSS attacks. Always make sure you are destructuring the values on objects like `req.query` and `req.params`. See https://blog.shoebpatel.com/2021/01/23/The-Secret-Parameter-LFR-and-Potential-RCE-in-NodeJS-Apps/ for more details.
6669

6770
## Usage
6871

0 commit comments

Comments
 (0)