VulnWatch by ve1ve2
medium 5.3 EPSS 0.28%

CVE-2026-130859: Habitat through 1.7.1 contains an insecure direct object reference vulnerability in CreatePostController::addAttachmentsToPost() that allows authenticated user…

Source:
NVD CVE API 2.0
Published:
Fetched:
Updated:
Affects:
php

https://nvd.nist.gov/vuln/detail/CVE-2026-130859 ↗

CWE-639

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. References: https://github.com/carlnewton/habitat/blob/1.7.1/src/Controller/Post/CreatePostController.php#L143-L168 https://github.com/carlnewton/habitat/blob/1.7.1/src/Repository/PostAttachmentRepository.php#L24-L35 https://github.com/carlnewton/habitat/issues/164 https://www.vulncheck.com/advisories/habitat-through-1.7.1-idor-via-post-creation-attachment-ids

Linked vulnerabilities (1)

CVE-2026-130859 medium 5.3 EPSS 0.28% (p21) NVDCVE.org
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

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.

CWE: CWE-639NVD: Received