{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-5821 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-5821 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-5821 is a high-severity path traversal vulnerability in elemntor Image Optimizer – Compress Images and Convert to WebP or AVIF, published on 2 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-5821 and fix it if it is affected.\n\nWhat it is: CVE-2026-5821 is a high-severity path traversal vulnerability in elemntor Image Optimizer – Compress Images and Convert to WebP or AVIF, published on 2 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-5821 in the wild and no public exploit code.\n\nAffected product: elemntor Image Optimizer – Compress Images and Convert to WebP or AVIF. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-5821/ (Markdown: https://insights.sbomify.com/CVE-2026-5821/index.md)","id":"CVE-2026-5821","markdown":"https://insights.sbomify.com/CVE-2026-5821/index.md","name":"CVE-2026-5821","record":{"aliases":["GHSA-rhv9-h5xx-r8m5"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["data_modify","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"WordPress plugin","requires_auth":"low_privilege","summary":"Authenticated attackers can delete arbitrary server files by injecting paths into post meta, causing data loss or denial of service.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Wordfence","cpe":[],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"description":"The Image Optimizer plugin for WordPress is vulnerable to arbitrary file deletion in versions up to and including 1.7.4. This is due to insufficient path validation in the Image_Backup::remove() function where backup file paths stored in post meta are used directly in file deletion operations without verifying they are within the uploads directory. The plugin stores backup file paths in the image_optimizer_metadata post meta field and trusts these paths completely when deleting backups on the delete_attachment hook. An authenticated attacker with Author-level access can edit the image_optimizer_metadata post meta on their own attachments via WordPress's Custom Fields interface, injecting arbitrary absolute file paths into the backups array. When the attacker subsequently deletes the attachment, the plugin calls File_System::delete() on each path without validation. This makes it possible for authenticated attackers, with Author-level access and above, to delete arbitrary files on the server within the web server's filesystem permissions, potentially leading to denial of service, data loss, or security degradation.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Image Optimizer \u003c= 1.7.4 - Authenticated (Author+) Arbitrary File Deletion via Post Meta Field Injection","id":"CVE-2026-5821","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":9,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-5822"},"packages":[],"prev":{"headline":"Zypento Blocks \u003c= 1.0.6 - Authenticated (Author+) Stored Cross-Site Scripting via Table of Contents Block","id":"CVE-2026-5820"},"products":["Image Optimizer – Compress Images and Convert to WebP or AVIF"],"published":"2026-07-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-28","vendors":["elemntor"]},"summary":"Authenticated attackers can delete arbitrary server files by injecting paths into post meta, causing data loss or denial of service.","url":"https://insights.sbomify.com/CVE-2026-5821/"}