{"answers":{"affected":"6 open source packages ship an affected version, including @saltcorn/server. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40163 exists.","fix":"Upgrade @saltcorn/server to a fixed version for your release line: 1.4.5, 1.5.5 or 1.6.0-beta.4.","what":"CVE-2026-40163 is a high-severity path traversal vulnerability in saltcorn, published on 10 Apr 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-40163 and fix it if it is affected.\n\nWhat it is: CVE-2026-40163 is a high-severity path traversal vulnerability in saltcorn, published on 10 Apr 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-40163 exists.\n\nAffected packages and fixed versions:\n- @saltcorn/server (npm): affected all versions; fixed in 1.4.5\n- @saltcorn/server (npm): affected all versions; fixed in 1.4.5\n- @saltcorn/server (npm): affected from 1.5.0-beta.0; fixed in 1.5.5\n- @saltcorn/server (npm): affected from 1.5.0-beta.0; fixed in 1.5.5\n- @saltcorn/server (npm): affected from 1.6.0-alpha.0; fixed in 1.6.0-beta.4\n- @saltcorn/server (npm): affected from 1.6.0-alpha.0; fixed in 1.6.0-beta.4\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-40163/ (Markdown: https://insights.sbomify.com/CVE-2026-40163/index.md)","id":"CVE-2026-40163","markdown":"https://insights.sbomify.com/CVE-2026-40163/index.md","name":"CVE-2026-40163","record":{"aliases":["GHSA-32pv-mpqg-h292"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Saltcorn no-code builder","requires_auth":"none","summary":"Unauthenticated attackers can exploit path traversal in Saltcorn sync endpoints to write arbitrary files and read directory contents on the server.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"saltcorn","vendor":"saltcorn"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Saltcorn is an extensible, open source, no-code database application builder. Prior to 1.4.5, 1.5.5, and 1.6.0-beta.4, the POST /sync/offline_changes endpoint allows an unauthenticated attacker to create arbitrary directories and write a changes.json file with attacker-controlled JSON content anywhere on the server filesystem. The GET /sync/upload_finished endpoint allows an unauthenticated attacker to list arbitrary directory contents and read specific JSON files. This vulnerability is fixed in 1.4.5, 1.5.5, and 1.6.0-beta.4.","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":"Saltcorn has an Unauthenticated Path Traversal in sync endpoints allows arbitrary file write and directory read","id":"CVE-2026-40163","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"jq: Algorithmic complexity DoS via hardcoded MurmurHash3 seed","id":"CVE-2026-40164"},"packages":[{"ecosystem":"npm","fixed":["1.4.5"],"introduced":["0"],"last_affected":[],"package":"@saltcorn/server","purl":null,"source":"GHSA-32pv-mpqg-h292"},{"ecosystem":"npm","fixed":["1.4.5"],"introduced":["0"],"last_affected":[],"package":"@saltcorn/server","purl":"pkg:npm/%40saltcorn/server","source":"GHSA-32pv-mpqg-h292"},{"ecosystem":"npm","fixed":["1.5.5"],"introduced":["1.5.0-beta.0"],"last_affected":[],"package":"@saltcorn/server","purl":null,"source":"GHSA-32pv-mpqg-h292"},{"ecosystem":"npm","fixed":["1.5.5"],"introduced":["1.5.0-beta.0"],"last_affected":[],"package":"@saltcorn/server","purl":"pkg:npm/%40saltcorn/server","source":"GHSA-32pv-mpqg-h292"},{"ecosystem":"npm","fixed":["1.6.0-beta.4"],"introduced":["1.6.0-alpha.0"],"last_affected":[],"package":"@saltcorn/server","purl":null,"source":"GHSA-32pv-mpqg-h292"},{"ecosystem":"npm","fixed":["1.6.0-beta.4"],"introduced":["1.6.0-alpha.0"],"last_affected":[],"package":"@saltcorn/server","purl":"pkg:npm/%40saltcorn/server","source":"GHSA-32pv-mpqg-h292"}],"prev":{"headline":"Bugsink affected by authenticated arbitrary file write in artifactbundle/assemble","id":"CVE-2026-40162"},"products":["saltcorn"],"published":"2026-04-10","related":[{"cvss_score":10,"headline":"Saltcorn: SQL Injection via Unparameterized Sync Endpoints (maxLoadedId)","id":"CVE-2026-41478","kev_date_added":null,"published":"2026-04-24"}],"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-15","vendors":["saltcorn"]},"summary":"Unauthenticated attackers can exploit path traversal in Saltcorn sync endpoints to write arbitrary files and read directory contents on the server.","url":"https://insights.sbomify.com/CVE-2026-40163/"}