CVE-2026-130859
Habitat through 1.7.1 contains an insecure direct object reference …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/carlnewton/habitat/blob/1.7.1/src/Controller/Post/CreatePostController.php#L143
- github.com/carlnewton/habitat/blob/1.7.1/src/Repository/PostAttachmentRepository.php#L24-L
- github.com/carlnewton/habitat/issues/164
- www.vulncheck.com/advisories/habitat-through-1.7.1-idor-via-post-creation-attachment-ids
- nvd.nist.gov/vuln/detail/CVE-2026-130859
- cve.org/CVERecord?id=CVE-2026-130859
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.