Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/kind-showers-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

fix static file serving security issue with logging
3 changes: 2 additions & 1 deletion packages/react-email/src/utils/preview/serve-static-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export const serveStaticFile = async (
} else {
const sanitizedFilePath = fileAbsolutePath.replace(/\n|\r/g, '');
console.error(
`Could not read file at ${sanitizedFilePath} to be served, here's the exception:`,
`Could not read file at %s to be served, here's the exception:`,
sanitizedFilePath,
exception,
);

Expand Down
Loading