CVE-2026-130859

Habitat through 1.7.1 IDOR via Post Creation Attachment IDs

Published Nov 17, 2026 CVSS 4.0 · 5.3 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Habitat contains an insecure direct object reference in the addAttachmentsToPost method, allowing an authenticated user to claim other users’ pending image uploads by submitting sequential attachment IDs. The attacker can therefore expose a private image publicly and remove it from the uploader’s pending list. The weakness is an IDOR flaw (CWE-639).

Affected Systems

The vulnerability exists in Habitat versions up to and including 1.7.1. Any deployment of Habitat with the 1.7.1 code base or earlier is affected.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate risk; the EPSS score is not available, and the vulnerability is not listed in CISA KEV. Exploitation requires that the attacker be an authenticated, email‑verified user with access to the post creation interface. The likely attack vector is through the web application’s post creation workflow, where the attacker supplies a specially crafted set of attachment IDs. Once triggered, the attacker can expose the image publicly and remove it from the original user’s pending uploads. The risk is moderate to low for an unauthenticated attacker, but direct authenticated users pose a moderate threat as the flaw allows unauthorized disclosure of user data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Habitat to a version newer than 1.7.1 where the IDOR issue is fixed.
  • Modify the post creation logic to validate that each attachment ID belongs to the authenticated user before it can be attached to a post.
  • Ensure that unclaimed attachment uploads remain private and are only displayed when they are formally attached to a user’s post.

Generated by OpenCVE AI on November 17, 2026 at 21:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Habitat through 1.7.1 IDOR via Post Creation Attachment IDs
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Subscriptions

No data.

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 10:24 PM
Reserved
Nov 17, 2026, 5:51 PM
Status
Received
Published
Nov 17, 2026, 8:17 PM
Modified
Nov 17, 2026, 11:17 PM