Skip to content

Commit 2e3b0d4

Browse files
committed
Denylists are also possible
1 parent 42902eb commit 2e3b0d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/handbook/security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ The following mitigations are listed in priority order.
232232
advisories <https://github.com/python-pillow/Pillow/security/advisories>`_.
233233
5. **Enforce** ``MAX_IMAGE_PIXELS`` — never set it to ``None``; treat
234234
``Image.DecompressionBombWarning`` as an error.
235-
6. **Allowlist image formats** — restrict accepted formats when opening
236-
images, for example with ``Image.open(..., formats=...)``, and isolate
235+
6. **Restrict image formats** — restrict formats when opening images, for
236+
example with ``Image.open(..., formats=...)``, and isolate
237237
installs/environments if you need to minimise supported formats.
238238
7. **Strip metadata on output** — never pass through EXIF/XMP/ICC from user
239239
uploads to publicly served images.

0 commit comments

Comments
 (0)