{"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-08-27T03:50:51.617261908Z","published":"2022-09-30T23:53:19Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42002.json"},"references":[{"type":"WEB","url":"https://github.com/lane711/sonicjs/tags"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42002.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42002"},{"type":"ARTICLE","url":"https://snyk.io/blog/graphql-security-static-analysis-snyk-code/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/SonicJs-Org/sonicjs","events":[{"introduced":"0"},{"fixed":"75b3e4e8ebd466fe19be1d7b96f076bfa1a38144"}],"database_specific":{"source":["DESCRIPTION","CPE_RANGE"],"cpe":"cpe:2.3:a:sonicjs:sonicjs:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"0.6.0"},{"last_affected":"0.6.0"}]}}],"versions":["v0.4.4","v0.4.2","Beta-0.3.1","v0.3.0","v0.2.0","v0.1.2","v0.1.1","beta-010","v1.0.0","0.0.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-42002.json"}}],"schema_version":"1.9.0"}