{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40487 exists.","fix":"No fix has been published for CVE-2026-40487 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-40487 is a high-severity vulnerability in gitroomhq postiz-app, published on 18 Apr 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-40487 and fix it if it is affected.\n\nWhat it is: CVE-2026-40487 is a high-severity vulnerability in gitroomhq postiz-app, published on 18 Apr 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40487 exists.\n\nAffected product: gitroomhq postiz-app. 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-40487/ (Markdown: https://insights.sbomify.com/CVE-2026-40487/index.md)","id":"CVE-2026-40487","markdown":"https://insights.sbomify.com/CVE-2026-40487/index.md","name":"CVE-2026-40487","record":{"aliases":["GHSA-44wg-r34q-hvfx"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Social media scheduling tool","requires_auth":"low_privilege","summary":"Authenticated users can upload malicious files via MIME spoofing, leading to stored XSS and potential account takeover in Postiz.","user_interaction":"required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"postiz","vendor":"gitroom"}],"cvss":{"score":8.9,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"description":"Postiz is an AI social media scheduling tool. Prior to version 2.21.6, a file upload validation bypass allows any authenticated user to upload arbitrary HTML, SVG, or other executable file types to the server by spoofing the `Content-Type` header. The uploaded files are then served by nginx with a Content-Type derived from their original extension (`text/html`, `image/svg+xml`), enabling Stored Cross-Site Scripting (XSS) in the context of the application's origin. This can lead to session riding, account takeover, and full compromise of other users' accounts. Version 2.21.6 contains a fix.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-04-15","github_poc":1,"max_poc_stars":3,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-15T12:33:58Z","kind":"github_poc","ref":"https://github.com/Astaruf/CVE-2026-40487","stars":3,"title":"CVE-2026-40487 - Postiz \u003c= 2.21.5 - Arbitrary File Upload via MIME-Type Spoofing → Stored XSS → Account Takeover"}],"tier":"weaponised"},"has_fix":false,"headline":"Postiz Has Unrestricted File Upload via MIME Type Spoofing that Leads to Stored XSS","id":"CVE-2026-40487","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"file_upload","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"OpenMage LTS has Customer File Upload Extension Blocklist Bypass that Leads to Remote Code Execution","id":"CVE-2026-40488"},"packages":[],"prev":{"headline":"Kimai's User Preferences API allows standard users to modify restricted attributes: hourly_rate, internal_rate","id":"CVE-2026-40486"},"products":["postiz-app"],"published":"2026-04-18","related":[{"cvss_score":10,"headline":"Postiz: Arbitrary Code Execution and Token Exfiltration in pr-docker-build.yml via untrusted Dockerfile.dev","id":"CVE-2026-42298","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":8.9,"headline":"Postiz stored XSS in public preview page","id":"CVE-2026-42556","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":8.6,"headline":"Postiz: Unauthenticated Full-Read SSRF via /public/stream Endpoint with Trivially Bypassable Extension Check","id":"CVE-2026-34577","kev_date_added":null,"published":"2026-04-02"},{"cvss_score":8.3,"headline":"Postiz: SSRF in upload-from-url endpoint allows fetching internal resources and cloud metadata","id":"CVE-2026-34576","kev_date_added":null,"published":"2026-04-02"},{"cvss_score":8.2,"headline":"Postiz has Server-Side Request Forgery via Redirect Bypass in /api/public/stream","id":"CVE-2026-40168","kev_date_added":null,"published":"2026-04-10"},{"cvss_score":5.4,"headline":"Postiz: SSRF via Webhook Creation Endpoint Missing URL Safety Validation","id":"CVE-2026-34590","kev_date_added":null,"published":"2026-04-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-20","vendors":["gitroomhq"]},"summary":"Authenticated users can upload malicious files via MIME spoofing, leading to stored XSS and potential account takeover in Postiz.","url":"https://insights.sbomify.com/CVE-2026-40487/"}