Skip to content

Document SVG denial in generated project upload defaults - #3378

Open
pwizla wants to merge 2 commits into
mainfrom
cms/document-svg-upload-security-policy
Open

Document SVG denial in generated project upload defaults#3378
pwizla wants to merge 2 commits into
mainfrom
cms/document-svg-upload-security-policy

Conversation

@pwizla

@pwizla pwizla commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

This PR updates documentation based on strapi/strapi#27360.

Adds a "SVG upload security" section to the Upload REST API page (cms/api/rest/upload.md) documenting:

  • That image/svg+xml is denied by default in projects generated with create-strapi-app, even though image/* is in allowedTypes
  • The rationale: SVG can contain browser-active content (scripts, event handlers)
  • That explicit deniedTypes entries take precedence over wildcards in allowedTypes
  • That this applies to new projects only — existing projects are not affected
  • How to allow SVG uploads if needed (with a security caveat)
  • A cross-link to the full security configuration reference in the Media Library docs

Generated automatically by the docs self-healing workflow.
Review before merging.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pwizla pwizla added the auto-doc-healing Automatically generated documentation PR label Aug 21, 2026
@pwizla pwizla self-assigned this Aug 21, 2026
@strapi-cla

strapi-cla commented Aug 21, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ pwizla
❌ github-actions[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Error Error Aug 21, 2026 12:40pm

Request Review

@github-actions github-actions Bot added internal PRs created by the Strapi core team pr: updated content PRs updating existing documentation content source: CMS labels Aug 21, 2026
Comment thread docusaurus/docs/cms/api/rest/upload.md Outdated
@pwizla pwizla added this to the 7.1.0 milestone Aug 21, 2026
@pwizla
pwizla marked this pull request as ready for review August 21, 2026 12:39
@pwizla pwizla added the flag: merge pending release Waiting for the related product PR to be merged before merging this documentation PR label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-doc-healing Automatically generated documentation PR flag: merge pending release Waiting for the related product PR to be merged before merging this documentation PR internal PRs created by the Strapi core team pr: updated content PRs updating existing documentation content source: CMS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants