Skip to content

Docs: add security guidance for untrusted input - #4590

Closed
nanggo wants to merge 1 commit into
lovell:mainfrom
nanggo:docs/security-untrusted-input
Closed

Docs: add security guidance for untrusted input#4590
nanggo wants to merge 1 commit into
lovell:mainfrom
nanggo:docs/security-untrusted-input

Conversation

@nanggo

@nanggo nanggo commented Aug 26, 2026

Copy link
Copy Markdown

I use sharp to process untrusted remote images in an open-source social preview generator. This documents the relevant constructor defaults, download and runtime limits, loader restrictions, and when individual settings can be relaxed for trusted input.

Closes #4098.

@lovell

lovell commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Thank you very much for taking the time to open a PR. Inspired by this I've revisited and refreshed the existing security policy, expanding it to include some of the topics you've mentioned and discussed at #4098 - see commit 4180d8b

This also adds a dedicated security page to the website as well as displaying it on the GitHub repo.

@lovell lovell closed this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: add section with suggestions relating to security (includes relaxing defaults for trusted input)

2 participants