I think JSON user (User:Username/pagename.json) pages need to move into JS pages' group. These pages look like on-duty pages for user and I think only the user can edit them ('editmyuserjs' right) and users with 'edituserjs' right. For security reasons.
Description
Description
Related Objects
Related Objects
Event Timeline
Comment Actions
Scripts should not be putting any security-sensitive settings on openly-editable pages. That's a problem with the scripts, not MediaWiki's handling of json pages.
Comment Actions
I know, but why JSON pages openly-editable? What difference between JSON page content and JS page content in user namespace?
Comment Actions
For example, this gadget has this localization page. If I want to save this gadget in 'User' namespace, and localize it in other way than one day somebody can come in and break the translation. Put the virus links, pictures smth else.
Comment Actions
OK, this is not a security bug then. I'll mark it as a duplicate of T76554: Restrict editing of .json pages in the user namespace (like .js and .css).