{"id":"CVE-2022-42002","details":"SonicJS through 0.6.0 allows file overwrite. It has the following mutations that are used for updating files: fileCreate and fileUpdate. Both of these mutations can be called without any authentication to overwrite any files on a SonicJS application, leading to Arbitrary File Write and Delete.","modified":"2026-04-10T04:58:06.657616Z","published":"2022-10-01T00:15:10.100Z","references":[{"type":"ADVISORY","url":"https://github.com/lane711/sonicjs/tags"},{"type":"EVIDENCE","url":"https://snyk.io/blog/graphql-security-static-analysis-snyk-code/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/lane711/sonicjs","events":[{"introduced":"0"},{"last_affected":"75b3e4e8ebd466fe19be1d7b96f076bfa1a38144"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"0.6.0"}]}}],"versions":["0.0.9","Beta-0.3.1","beta-010","v0.1.1","v0.1.2","v0.2.0","v0.3.0","v0.4.2","v0.4.4","v0.6.0","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-42002.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"}]}