Fixed
Project:
Drupal core
Version:
11.4.x-dev
Component:
jsonapi.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2026 at 00:45 UTC
Updated:
2 Nov 2026 at 11:18 UTC
Jump to comment: Most recent
Test coverage was written for SA-CORE-2026-009, but has not yet been added to core.
Add the test coverage.
NR.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
xjmComment #4
smustgrave commentedTested this one by reverting https://git.drupalcode.org/project/drupal/-/commit/31867e6906e1368accb0e...
Applying the MR and running testImageUploadMaliciousContent
Had to think about the placement of the test since the original commit was in the file module but if I understand it correctly the bug is really core/modules/jsonapi/src/Controller/FileUpload.php.
No additional feedback.
Comment #9
catchCommitted/pushed to main and backported through to 11.5.x, thanks!
Comment #12
xjmCherry-picked to 11.4.x also.