CVE-2026-130859
Habitat through 1.7.1 IDOR via Post Creation Attachment IDs
Medium · 5.3
- CVSS
- 5.3
- EPSS
- 0.28% (p22)
- Published
- 2026-11-17
- Age
- 19d old
- Modified
- 2026-11-24
- Product
- carlnewton Habitat
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
Description
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.
Sources
- NVD · first seen 19d ago · NVD terms of use
- OSV · first seen 19d ago · CC-BY 4.0
- CVE List · first seen 19d ago · CVE Terms of Use
References
- https://github.com/carlnewton/habitat/issues/164 issue-tracking
- https://github.com/carlnewton/habitat/blob/1.7.1/src/Repository/PostAttachmentRepository.php#L24-L35 technical-description
- https://github.com/carlnewton/habitat/blob/1.7.1/src/Controller/Post/CreatePostController.php#L143-L168 technical-description
- https://www.vulncheck.com/advisories/habitat-through-1.7.1-idor-via-post-creation-attachment-ids third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130859.json advisory
- https://github.com/carlnewton/habitat package
- https://nvd.nist.gov/vuln/detail/CVE-2026-130859 advisory