# CVE-2026-130859: Habitat through 1.7.1 IDOR via Post Creation Attachment IDs

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-11-17T19:47:34.941Z
- Modified: 2026-11-24T20:48:26.733Z
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- carlnewton Habitat: up to 1.7.1

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `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`
- VulnCheck: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-130859](https://www.cve.org/CVERecord?id=CVE-2026-130859), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-130859](https://nvd.nist.gov/vuln/detail/CVE-2026-130859), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-130859 · Whole record: https://cve.day/CVE-2026-130859.json · Rebuilt by cve.day 2026-11-25T22:59:51.061Z
