Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔒 Added notes on a potential security vulnerability
- Express.js never intended for template options to be passed via res.render - If you use res.render to pass a layout, the file will be read from disk - If you pass user-submitted data as options to res.render e.g. using req.query, then user-submitted file paths will be read - This is only a potential security vulnerability, depending on the implementation - Further fixes will be pushed to express-hbs to disable this behaviour by default
- Loading branch information