- Issue created by @asghar
- Status changed to Closed: won't fix
4 months ago 12:54pm 25 July 2024 - πΊπΈUnited States zengenuity
This would introduce a security vulnerability similar to https://www.drupal.org/sa-contrib-2024-006 β , so I can't accept the patch as it's provided.
When I wrote this check, I broke this functionality into a service so that sites that want to do something different can override it. So, if you want to allow images to be embedded from a theme folder, you can do that by decorating or replacing the EmbeddedImageValidator service in a custom module. I still would advise against removing the folder check entirely in your service, to avoid introducing a vulnerability to your site. Just allow the specific folders you want to allow.