{"id":"CVE-2026-130859","summary":"Habitat through 1.7.1 IDOR via Post Creation Attachment IDs","details":"Habitat through 1.7.1 contains an insecure direct object reference vulnerability in CreatePostController::addAttachmentsToPost() that allows authenticated users to claim other users' unposted image uploads. Email-verified attackers can submit sequential attachmentIds when creating a post to attach another user's pending image, exposing it publicly and removing it from the uploader's post.","modified":"2026-11-17T21:45:45.954759394Z","published":"2026-11-17T19:47:34.941Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-639"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130859.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130859.json"},{"type":"PACKAGE","url":"https://github.com/carlnewton/habitat"},{"type":"ARTICLE","url":"https://github.com/carlnewton/habitat/blob/1.7.1/src/Controller/Post/CreatePostController.php#L143-L168"},{"type":"ARTICLE","url":"https://github.com/carlnewton/habitat/blob/1.7.1/src/Repository/PostAttachmentRepository.php#L24-L35"},{"type":"REPORT","url":"https://github.com/carlnewton/habitat/issues/164"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-130859"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/habitat-through-1.7.1-idor-via-post-creation-attachment-ids"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/carlnewton/habitat","events":[{"introduced":"0"},{"last_affected":"cd9cdb251ee8c6df0e63ddc20cb466562b949cc8"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"1.7.1"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["1.7.1","1.7.0","1.6.0","1.5.0","1.4.0","1.3.0","1.2.0","1.1.0","1.0.2","1.0.1","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-130859.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"}]}