{"answers":{"affected":"2 open source packages ship an affected version, including tinacms. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28791 exists.","fix":"Upgrade tinacms to 2.1.7 or later.","what":"CVE-2026-28791 is a high-severity path traversal vulnerability in tinacms, published on 12 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-28791 and fix it if it is affected.\n\nWhat it is: CVE-2026-28791 is a high-severity path traversal vulnerability in tinacms, published on 12 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28791 exists.\n\nAffected packages and fixed versions:\n- tinacms (npm): affected all versions; fixed in 2.1.7\n- tinacms (npm): affected all versions; fixed in 2.1.7\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-28791/ (Markdown: https://insights.sbomify.com/CVE-2026-28791/index.md)","id":"CVE-2026-28791","markdown":"https://insights.sbomify.com/CVE-2026-28791/index.md","name":"CVE-2026-28791","record":{"aliases":["GHSA-5hxf-c7j4-279c"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"TinaCMS headless CMS","requires_auth":"none","summary":"An attacker can write files to arbitrary filesystem locations via the TinaCMS development server's media upload handler due to insufficient path validation.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tinacms\\/cli","vendor":"ssw"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Tina is a headless content management system. Prior to 2.1.7, a path traversal vulnerability exists in the TinaCMS development server's media upload handler. The code at media.ts joins user-controlled path segments using path.join() without validating that the resulting path stays within the intended media directory. This allows writing files to arbitrary locations on the filesystem. This vulnerability is fixed in 2.1.7.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path Traversal in Media Upload Handle in Tina","id":"CVE-2026-28791","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Cross-Origin File Exfiltration via CORS Misconfiguration + Path Traversal in TinaCMS","id":"CVE-2026-28792"},"packages":[{"ecosystem":"npm","fixed":["2.1.7"],"introduced":["0"],"last_affected":[],"package":"tinacms","purl":null,"source":"GHSA-5hxf-c7j4-279c"},{"ecosystem":"npm","fixed":["2.1.7"],"introduced":["0"],"last_affected":[],"package":"tinacms","purl":"pkg:npm/tinacms","source":"GHSA-5hxf-c7j4-279c"}],"prev":{"headline":"OliveTin: Unauthenticated Action Termination via KillAction When Guests Must Login","id":"CVE-2026-28790"},"products":["tinacms"],"published":"2026-03-12","related":[{"cvss_score":9.7,"headline":"Cross-Origin File Exfiltration via CORS Misconfiguration + Path Traversal in TinaCMS","id":"CVE-2026-28792","kev_date_added":null,"published":"2026-03-12"},{"cvss_score":8.6,"headline":"Sensitive Information leak via Script File in TinaCMS","id":"CVE-2023-25164","kev_date_added":null,"published":"2023-02-08"},{"cvss_score":8.4,"headline":"Path Traversal Leading to Arbitrary File Read, Write and Delete in TinaCMS","id":"CVE-2026-28793","kev_date_added":null,"published":"2026-03-12"},{"cvss_score":7.5,"headline":"Tina search token leak via lock file in TinaCMS","id":"CVE-2024-45391","kev_date_added":null,"published":"2024-09-03"},{"cvss_score":7.1,"headline":"@tinacms/graphql's Media Endpoints Can Escape the Media Root via Symlinks or Junctions","id":"CVE-2026-34603","kev_date_added":null,"published":"2026-04-01"},{"cvss_score":6.2,"headline":"Arbitrary File Read via Disabled Vite Filesystem Restriction in TinaCMS CLI","id":"CVE-2026-29066","kev_date_added":null,"published":"2026-03-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-13","vendors":["tinacms"]},"summary":"An attacker can write files to arbitrary filesystem locations via the TinaCMS development server's media upload handler due to insufficient path validation.","url":"https://insights.sbomify.com/CVE-2026-28791/"}