Skip to content

Commit 4b07d2d

Browse files
committed
add a note about security in the readme
1 parent d9864f6 commit 4b07d2d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,13 @@ blocked by a missing API.
5151

5252
Each pipeline execution spawns an OS process. This is well-suited for
5353
batch processing, image pipelines, and server-side generation, but is not
54-
appropriate for tight loops that process many small images per second. For
55-
those workloads, consider batching operations or pre-generating assets.
54+
appropriate for tight loops that process many small images per second.
55+
56+
**Security.** ImageMagick has a history of security vulnerabilities related
57+
to parsing complex image formats. Processing untrusted user uploads directly
58+
can be risky. Consider running image processing in isolated containers or
59+
sandboxes, validating file types before processing, using restrictive
60+
ImageMagick policies, and setting resource limits to prevent DoS attacks.
5661

5762
ImageMagick must also be installed on every host that runs your application.
5863
See the [Prerequisites](#prerequisites) section for installation instructions.

0 commit comments

Comments
 (0)