An issue exists in MediaWiki up to and including 1.37.1. ImportPlanValidator.php in the FileImporter extension mishandles the check for edit rights.
mediawiki mediawiki