Common Weakness Enumeration

CWE-639

Weakness Allowed

Authorization Bypass Through User-Controlled Key

Abstraction: Base · Status: Incomplete

The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.

It is likely that an attacker would have to be an authenticated user in the system. However, the authorization process would not properly check the data access operation to ensure that the authenticated user performing the operation has sufficient entitlements to perform the requested data access, hence bypassing any other authorization checks present in the system.

For example, attackers can look at places where user specific data is retrieved (e.g. search screens) and determine whether the key for the item being looked up is controllable externally. The key may be a hidden field in the HTML form field, might be passed as a URL parameter or as an unencrypted cookie variable, then in each of these cases it will be possible to tamper with the key value.

Mapping guidance

This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.

Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.

Relationships and members
ChildOf: CWE-863 · View CWE-1000
ChildOf: CWE-863 · View CWE-1003
ChildOf: CWE-284 · View CWE-1340
Modes of introduction
Architecture and Design

REALIZATION: This weakness is caused during implementation of an architectural security tactic.

Architecture and Design

Retrieval of a user record occurs in the system based on some key value that is under user control. The key would typically identify a user-related record stored in the system and would be used to lookup that record for presentation to the user.

Implementation

One manifestation of this weakness is when a system uses sequential or otherwise easily-guessable session IDs that would allow one user to easily switch to another user's session and read/modify their data.

Detection methods

Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Effectiveness: High

Notes

Maintenance

As of CWE 4.20, the relationship between IDOR and BOLA needs to be investigated more closely, including research into how these terms are used in the industry. The CWE team suspects that IDOR can be a part of BOLA, but BOLA expands on the weakness inherent to IDOR in that it is not only about objects that are being directly referenced.

Content history
Submission: Evgeny Lebanidze · Cigital · 2008-01-30 · CWE Draft 8
Contribution: Mateus Godinho Pantoja · 2024-08-09 · CWE 4.20

Suggested corrections to use of IDOR versus BOLA

Modification: CWE Content Team · MITRE · 2008-09-08 · CWE 1.0

updated Common_Consequences, Relationships, Type

Modification: CWE Content Team · MITRE · 2008-10-14 · CWE 1.0.1

updated Description

Modification: CWE Content Team · MITRE · 2009-03-10 · CWE 1.3

updated Relationships

Modification: CWE Content Team · MITRE · 2009-05-27 · CWE 1.4

updated Relationships

Modification: CWE Content Team · MITRE · 2009-10-29 · CWE 1.6

updated Common_Consequences

Modification: CWE Content Team · MITRE · 2010-06-21 · CWE 1.9

updated Relationships

Modification: CWE Content Team · MITRE · 2011-03-29 · CWE 1.12

updated Alternate_Terms, Applicable_Platforms, Description, Name, Potential_Mitigations, Relationships

Modification: CWE Content Team · MITRE · 2011-06-01 · CWE 1.13

updated Common_Consequences, Relationships

Modification: CWE Content Team · MITRE · 2012-05-11 · CWE 2.2

updated Relationships

Modification: CWE Content Team · MITRE · 2013-02-21 · CWE 2.4

updated Alternate_Terms, Common_Consequences

Modification: CWE Content Team · MITRE · 2013-07-17 · CWE 2.5

updated Relationships

Modification: CWE Content Team · MITRE · 2014-07-30 · CWE 2.8

updated Relationships

Modification: CWE Content Team · MITRE · 2017-11-08 · CWE 3.0

updated Description, Enabling_Factors_for_Exploitation, Modes_of_Introduction, Relationships

Modification: CWE Content Team · MITRE · 2018-03-27 · CWE 3.1

updated Relationships

Modification: CWE Content Team · MITRE · 2019-06-20 · CWE 3.3

updated Relationships

Modification: CWE Content Team · MITRE · 2020-02-24 · CWE 4.0

updated Relationships

Modification: CWE Content Team · MITRE · 2020-06-25 · CWE 4.1

updated Alternate_Terms

Modification: CWE Content Team · MITRE · 2020-12-10 · CWE 4.3

updated Relationships

Modification: CWE Content Team · MITRE · 2021-03-15 · CWE 4.4

updated Alternate_Terms

Modification: CWE Content Team · MITRE · 2021-10-28 · CWE 4.6

updated Relationships

Modification: CWE Content Team · MITRE · 2023-04-27 · CWE 4.11

updated Detection_Factors, Relationships

Modification: CWE Content Team · MITRE · 2023-06-29 · CWE 4.12

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2023-10-26 · CWE 4.13

updated Observed_Examples

Modification: CWE Content Team · MITRE · 2024-02-29 · CWE 4.14

updated Demonstrative_Examples

Modification: CWE Content Team · MITRE · 2025-12-11 · CWE 4.19

updated References, Relationships, Weakness_Ordinalities

Modification: CWE Content Team · MITRE · 2026-04-30 · CWE 4.20

updated Alternate_Terms, Maintenance_Notes, References

Modification: CWE Content Team · MITRE · 2026-10-28 · CWE 5.0

updated Description, Modes_of_Introduction, Time_of_Introduction

6482 vulnerabilities reference this CWE, most recent first.

GHSA-WH72-R77F-WJ75

Vulnerability from github – Published: 2022-05-24 19:18 – Updated: 2022-05-24 19:18
VLAI
Details

Affected versions of Atlassian Jira Server and Data Center allow anonymous remote attackers to view the names of private projects and filters via an Insecure Direct Object References (IDOR) vulnerability in the Average Number of Times in Status Gadget. The affected versions are before version 8.13.12..

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2021-41305"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-200",
      "CWE-639"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2021-10-26T05:15:00Z",
    "severity": "HIGH"
  },
  "details": "Affected versions of Atlassian Jira Server and Data Center allow anonymous remote attackers to view the names of private projects and filters via an Insecure Direct Object References (IDOR) vulnerability in the Average Number of Times in Status Gadget. The affected versions are before version 8.13.12..",
  "id": "GHSA-wh72-r77f-wj75",
  "modified": "2022-05-24T19:18:52Z",
  "published": "2022-05-24T19:18:52Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41305"
    },
    {
      "type": "WEB",
      "url": "https://jira.atlassian.com/browse/JRASERVER-72813"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-WHJ5-44P4-M2FF

Vulnerability from github – Published: 2026-10-26 18:32 – Updated: 2026-10-26 18:32
VLAI
Details

UNSUPPORTED WHEN ASSIGNED  Authorization bypass in Apache Vysper, all versions.

Apache Vysper is an XMPP (Jabber) server library. Its XEP-0077 (In-Band Registration) implementation is missing an authentication check, allowing any authenticated user to compromise other accounts.

As this project is retired, we do not plan to release a version that fixes this issue. Users are recommended to find an alternative.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-115748"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-26T16:17:17Z",
    "severity": "HIGH"
  },
  "details": "**UNSUPPORTED WHEN ASSIGNED**\u00a0\u00a0Authorization bypass in Apache Vysper, all versions.\n\n\n\n\nApache Vysper is an XMPP (Jabber) server library. Its XEP-0077 (In-Band Registration) implementation is missing an authentication check, allowing any authenticated user to compromise other accounts.\n\n\n\n\nAs this project is retired, we do not plan to release a version that fixes this issue. Users are recommended to find an alternative.",
  "id": "GHSA-whj5-44p4-m2ff",
  "modified": "2026-10-26T18:32:57Z",
  "published": "2026-10-26T18:32:57Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-115748"
    },
    {
      "type": "WEB",
      "url": "https://lists.apache.org/thread.html/979n9lzg10vc7tdrrlgy4lh5yrsw8wsj"
    },
    {
      "type": "WEB",
      "url": "https://mina.apache.org/vysper-project"
    },
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2026/10/23/21"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-WHMP-H7X8-7X69

Vulnerability from github – Published: 2026-06-23 15:32 – Updated: 2026-06-23 15:32
VLAI
Details

Capgo before 12.128.2 contains an authorization bypass vulnerability in POST /private/role_bindings that fails to verify app_id ownership during app-scoped role binding creation. An attacker with administrative privileges in one organization can create role bindings targeting applications owned by other organizations, enabling unauthorized read and modification of victim applications.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-56222"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-06-23T13:16:44Z",
    "severity": "HIGH"
  },
  "details": "Capgo before 12.128.2 contains an authorization bypass vulnerability in POST /private/role_bindings that fails to verify app_id ownership during app-scoped role binding creation. An attacker with administrative privileges in one organization can create role bindings targeting applications owned by other organizations, enabling unauthorized read and modification of victim applications.",
  "id": "GHSA-whmp-h7x8-7x69",
  "modified": "2026-06-23T15:32:36Z",
  "published": "2026-06-23T15:32:36Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/Cap-go/capgo/security/advisories/GHSA-5r52-m8r9-7f8x"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-56222"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/capgo-cross-organization-app-takeover-via-mismatched-org-id-and-app-id-in-private-role-bindings"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/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",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-WHRV-P3HH-8MVR

Vulnerability from github – Published: 2026-10-11 15:31 – Updated: 2026-10-11 15:31
VLAI
Details

iFlytek Astron Agent through 1.1.2 contains an insecure direct object reference vulnerability that allows authenticated applications to resume other applications' paused workflows by supplying their event_id to POST /workflow/v1/resume. Attackers can predict Snowflake event IDs to inject resume content into victim workflows and read their continuation output stream, breaking cross-tenant isolation.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-108864"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-11T14:17:06Z",
    "severity": "LOW"
  },
  "details": "iFlytek Astron Agent through 1.1.2 contains an insecure direct object reference vulnerability that allows authenticated applications to resume other applications\u0027 paused workflows by supplying their event_id to POST /workflow/v1/resume. Attackers can predict Snowflake event IDs to inject resume content into victim workflows and read their continuation output stream, breaking cross-tenant isolation.",
  "id": "GHSA-whrv-p3hh-8mvr",
  "modified": "2026-10-11T15:31:08Z",
  "published": "2026-10-11T15:31:08Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-108864"
    },
    {
      "type": "WEB",
      "url": "https://github.com/iflytek/astron-agent"
    },
    {
      "type": "WEB",
      "url": "https://github.com/iflytek/astron-agent/blob/v1.1.2/core/workflow/api/v1/chat/open.py#L106-L183"
    },
    {
      "type": "WEB",
      "url": "https://github.com/iflytek/astron-agent/blob/v1.1.2/core/workflow/cache/event_registry.py"
    },
    {
      "type": "WEB",
      "url": "https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/iflytek-astron-agent-cross-app-workflow-resume"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/iflytek-astron-agent-through-1.1.2-authorization-bypass-via-workflow-v1-resume-endpoint"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/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",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-WJ4W-MC24-PCFM

Vulnerability from github – Published: 2026-10-01 12:31 – Updated: 2026-10-27 14:44
Withdrawn 2026-10-27 VLAI
Summary
Duplicate Advisory: Ghost: Authorization Bypass in Comment Like Feature
Details

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-qrh6-cwg3-343x. This link is maintained to preserve external references.

Original Description

Ghost, an open-source publishing platform, contains an input validation flaw in its comment like feature in versions from 5.9.0 before 6.44.1. An authenticated member can delete comment likes or dislikes belonging to other users that they are not authorized to delete, resulting in an authorization bypass and unauthorized modification of comment engagement data.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "ghost"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.9.0"
            },
            {
              "fixed": "6.44.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-27T14:44:14Z",
    "nvd_published_at": "2026-10-01T11:17:25Z",
    "severity": "HIGH"
  },
  "details": "## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of\u00a0GHSA-qrh6-cwg3-343x. This link is maintained to preserve external references.\n\n## Original Description\nGhost, an open-source publishing platform, contains an input validation flaw in its comment like feature in versions from 5.9.0 before 6.44.1. An authenticated member can delete comment likes or dislikes belonging to other users that they are not authorized to delete, resulting in an authorization bypass and unauthorized modification of comment engagement data.",
  "id": "GHSA-wj4w-mc24-pcfm",
  "modified": "2026-10-27T14:44:14Z",
  "published": "2026-10-01T12:31:19Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/TryGhost/Ghost/security/advisories/GHSA-qrh6-cwg3-343x"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-103288"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/ghost-5.9.0-before-6.44.1-authorization-bypass-via-comment-like"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Duplicate Advisory: Ghost: Authorization Bypass in Comment Like Feature",
  "withdrawn": "2026-10-27T14:44:14Z"
}

GHSA-WJ7X-58C2-5793

Vulnerability from github – Published: 2026-11-20 00:14 – Updated: 2026-11-20 00:14
VLAI
Summary
Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint
Details

Summary

Daptin registers a generic WebSocket endpoint, GET /yjs/:documentName, for real-time collaborative document editing (YJS/CRDT). Unlike its purpose-built sibling route, this generic endpoint performs no per-resource authorization check - it only verifies that some user session exists. Because the document store parses :documentName as typename.referenceId.columnName and fetches that row's real column content unconditionally, any authenticated user (including a brand-new, zero-privilege, self-registered account) can read - and, since YJS sync is bidirectional, also write - the content of any file.*-typed column on any row of any table, including tables that are admin-only by default.

Details

InitializeYjsResources (server/endpoint_yjs.go) registers two routes.

The purpose-built, correctly-secured route, registered once per file.*-typed column on every table:

// server/endpoint_yjs.go:47-113 (abridged)
path := fmt.Sprintf("/live/%v/:referenceId/%v/yjs", typename, columnInfo.ColumnName)
...
return func(ginContext *gin.Context) {
    sessionUser := ...
    if sessionUser == nil { ginContext.AbortWithStatus(403); return }
    ...
    object, _, getErr := cruds[typename].GetSingleRowByReferenceIdWithTransaction(typename, parsedId, nil, tx)
    if getErr != nil { ginContext.AbortWithStatus(404); return }
    ...
    objectPermission := cruds[typename].GetRowPermission(object, tx2)
    if !objectPermission.CanUpdate(user.UserReferenceId, user.Groups, cruds[typename].AdministratorGroupId) {
        ginContext.AbortWithStatus(401)
        return
    }
    roomName := fmt.Sprintf("%v%v%v%v%v", typename, ".", referenceId, ".", columnInfo.ColumnName)
    ...
    yjsConnectionHandler(ginContext.Writer, ginContext.Request)
}

This route correctly requires a session, loads the actual row, and checks objectPermission.CanUpdate(...) for the specific requesting user before allowing the WebSocket upgrade.

A second, generic route is registered right above it, with none of those checks:

// server/endpoint_yjs.go:27-38
defaultRouter.GET("/yjs/:documentName", func(ginContext *gin.Context) {
    sessionUser := ginContext.Request.Context().Value("user")
    if sessionUser == nil {
        ginContext.AbortWithStatus(403)
        return
    }
    yjsConnectionHandler(ginContext.Writer, ginContext.Request)
})

The only gate here is "is some session present" - there is no lookup of the referenced row, no GetRowPermission, no CanUpdate/CanRead check at all. :documentName is taken verbatim from the URL and handed straight to yjsConnectionHandler.

The YJS document store's content provider parses documentName using exactly the typename.referenceId.columnName convention the secure route builds internally as roomName, and uses it to fetch the real row from the database with no authorization check of its own:

// server/yjs_doucment_provider.go:41-115 (abridged)
ydb.WithInitialContentProvider(func(documentPath string) []byte {
    pathParts := strings.Split(documentPath, ".")
    typeName, referenceId, columnName := pathParts[0], pathParts[1], pathParts[2]
    crud := cruds[typeName]
    object, _, getErr := crud.GetSingleRowByReferenceIdWithTransaction(typeName, parsedId,
        map[string]bool{columnName: true}, tx)
    ...
    // decodes and returns the actual file/column content, base64-decoded, as the
    // initial content of the shared collaborative document
})

Because the generic route performs no permission check, any authenticated user can supply documentName = "<any table>.<any reference_id>.<any file.* column>" and the initial YJS sync will serve them that row's real content - including rows whose table has DefaultGroups: adminsGroup (admin-only by default, e.g. the built-in calendar table) or rows an ordinary user's own row-level permissions would otherwise forbid them from reading. Since YJS sync is bidirectional, a connected client can also push edits, which legitimate collaborators may later pull back in through the correctly secured /live/... route, giving a write/corruption path as well as a read path.

PoC

Built and ran current HEAD in a clean container; created two accounts (admin@admin.com, first signup -> admin; bob@bob.com, second signup -> ordinary, non-admin user with default permissions only):

# 1) Generic endpoint accepts ANY authenticated session for ANY document name,
#    including a syntactically-valid-but-nonexistent reference_id on an admin-only table:
curl -i -N \
  -H "Authorization: Bearer $BOB_TOKEN" \
  -H "Connection: Upgrade" -H "Upgrade: websocket" \
  -H "Sec-WebSocket-Version: 13" -H "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==" \
  "http://localhost:6336/yjs/calendar.deadbeef-0000-0000-0000-000000000000.content"
# => HTTP/1.1 101 Switching Protocols        <-- ACCEPTED, no ownership/permission check at all

# 2) The purpose-built, secured sibling route correctly validates the very same identifier:
curl -i -N \
  -H "Authorization: Bearer $BOB_TOKEN" \
  -H "Connection: Upgrade" -H "Upgrade: websocket" \
  -H "Sec-WebSocket-Version: 13" -H "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==" \
  "http://localhost:6336/live/calendar/deadbeef-0000-0000-0000-000000000000/content/yjs"
# => HTTP/1.1 404 Not Found                  <-- looks the row up, would 401 if it existed and Bob lacked access

# 3) Sanity check: the generic endpoint DOES require *some* session (not fully unauthenticated) --
#    the flaw is specifically the missing per-resource check, not a missing session check:
curl -i -N \
  -H "Connection: Upgrade" -H "Upgrade: websocket" \
  -H "Sec-WebSocket-Version: 13" -H "Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==" \
  "http://localhost:6336/yjs/calendar.deadbeef-0000-0000-0000-000000000000.content"
# => HTTP/1.1 403 Forbidden

bob@bob.com has zero relationship to the calendar table (whose DefaultGroups is adminsGroup - admin-only by default) or to the fabricated reference ID, yet the generic route unconditionally upgrades the connection for him. Any real row's typename.referenceId.columnName - reference IDs routinely appear in ordinary list/read API responses even when the sensitive column itself is restricted - is enough to pull that column's actual content through this side channel, fully bypassing the row/column permission system that the sibling /live/... route (and the rest of Daptin's permission model) correctly enforces.

Impact

  • Confidentiality: any signed-up user, including a brand-new self-registered account with no group memberships, can read the live content of any file.*-typed column on any row of any table - including tables that are admin-only by default (e.g. calendar) and rows whose row-level permissions would otherwise block that user - by supplying the right typename.referenceId.columnName triple to GET /yjs/:documentName.
  • Integrity: because YJS sync is bidirectional CRDT replication, the same low-privileged connection can push edits into the shared document; those edits are visible to any legitimate collaborator who later opens the same document through the correctly-secured /live/... route.
  • Who is impacted: every Daptin deployment with at least one file.*-typed column (built-in examples: calendar.content (file.ical), the generic document table's document_content (file.*), and any custom table an admin defines with a file.xxx column type), since the vulnerable route is registered generically for every such column across every table at startup. Any user able to self-register (open signup is the default) is sufficient to exploit this.

Resolution

Fixed on the default branch in daptin/daptin@a1a3c48f. Canonical database-backed YJS rooms now use the same row lookup and existing PermissionInstance.CanUpdate/CanRead authorization for both /yjs/:documentName and /live/... routes. Update permission grants read-write access; read-only permission grants a read-only YJS session; unauthorized and missing resources fail closed with 404. Standalone non-canonical room names retain their existing authenticated, shared-by-name behavior. The initial-content provider now validates the exact canonical form, UUID, table, and file.* column before database access.

Read-only protocol enforcement is provided by artpar/ydb v0.4.1 (artpar/ydb@b79b01a), which fully consumes but drops all client YJS sync write subtypes while continuing to deliver history and broadcasts.

Verification included YDB race tests for all sync subtypes, concatenated-frame handling, persistence/broadcast suppression, catch-up, and connection continuity; Daptin permission/parser unit tests; the full Daptin test suite; server race tests; go vet; and a fresh-instance CLI/WebSocket exercise covering authentication, fail-closed canonical routes, standalone compatibility, and canonical/live cross-route relay.

No patched Daptin version is listed until a release containing a1a3c48f is published.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/daptin/daptin"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.11.4"
            },
            {
              "fixed": "0.12.30"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-77369"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639",
      "CWE-862",
      "CWE-863"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-20T00:14:14Z",
    "nvd_published_at": "2026-11-19T17:18:59Z",
    "severity": "CRITICAL"
  },
  "details": "### Summary\n\nDaptin registers a generic WebSocket endpoint, `GET /yjs/:documentName`, for real-time collaborative\ndocument editing (YJS/CRDT). Unlike its purpose-built sibling route, this generic endpoint performs\nno per-resource authorization check - it only verifies that *some* user session exists. Because the\ndocument store parses `:documentName` as `typename.referenceId.columnName` and fetches that row\u0027s\nreal column content unconditionally, any authenticated user (including a brand-new, zero-privilege,\nself-registered account) can read - and, since YJS sync is bidirectional, also write - the content\nof any `file.*`-typed column on any row of any table, including tables that are admin-only by\ndefault.\n\n### Details\n\n`InitializeYjsResources` (`server/endpoint_yjs.go`) registers two routes.\n\nThe purpose-built, correctly-secured route, registered once per `file.*`-typed column on every\ntable:\n\n```go\n// server/endpoint_yjs.go:47-113 (abridged)\npath := fmt.Sprintf(\"/live/%v/:referenceId/%v/yjs\", typename, columnInfo.ColumnName)\n...\nreturn func(ginContext *gin.Context) {\n    sessionUser := ...\n    if sessionUser == nil { ginContext.AbortWithStatus(403); return }\n    ...\n    object, _, getErr := cruds[typename].GetSingleRowByReferenceIdWithTransaction(typename, parsedId, nil, tx)\n    if getErr != nil { ginContext.AbortWithStatus(404); return }\n    ...\n    objectPermission := cruds[typename].GetRowPermission(object, tx2)\n    if !objectPermission.CanUpdate(user.UserReferenceId, user.Groups, cruds[typename].AdministratorGroupId) {\n        ginContext.AbortWithStatus(401)\n        return\n    }\n    roomName := fmt.Sprintf(\"%v%v%v%v%v\", typename, \".\", referenceId, \".\", columnInfo.ColumnName)\n    ...\n    yjsConnectionHandler(ginContext.Writer, ginContext.Request)\n}\n```\n\nThis route correctly requires a session, loads the actual row, and checks\n`objectPermission.CanUpdate(...)` for the specific requesting user before allowing the WebSocket\nupgrade.\n\nA second, generic route is registered right above it, with none of those checks:\n\n```go\n// server/endpoint_yjs.go:27-38\ndefaultRouter.GET(\"/yjs/:documentName\", func(ginContext *gin.Context) {\n    sessionUser := ginContext.Request.Context().Value(\"user\")\n    if sessionUser == nil {\n        ginContext.AbortWithStatus(403)\n        return\n    }\n    yjsConnectionHandler(ginContext.Writer, ginContext.Request)\n})\n```\n\nThe only gate here is \"is some session present\" - there is no lookup of the referenced row, no\n`GetRowPermission`, no `CanUpdate`/`CanRead` check at all. `:documentName` is taken verbatim from\nthe URL and handed straight to `yjsConnectionHandler`.\n\nThe YJS document store\u0027s content provider parses `documentName` using exactly the\n`typename.referenceId.columnName` convention the secure route builds internally as `roomName`, and\nuses it to fetch the real row from the database with no authorization check of its own:\n\n```go\n// server/yjs_doucment_provider.go:41-115 (abridged)\nydb.WithInitialContentProvider(func(documentPath string) []byte {\n    pathParts := strings.Split(documentPath, \".\")\n    typeName, referenceId, columnName := pathParts[0], pathParts[1], pathParts[2]\n    crud := cruds[typeName]\n    object, _, getErr := crud.GetSingleRowByReferenceIdWithTransaction(typeName, parsedId,\n        map[string]bool{columnName: true}, tx)\n    ...\n    // decodes and returns the actual file/column content, base64-decoded, as the\n    // initial content of the shared collaborative document\n})\n```\n\nBecause the generic route performs no permission check, any authenticated user can supply\n`documentName = \"\u003cany table\u003e.\u003cany reference_id\u003e.\u003cany file.* column\u003e\"` and the initial YJS sync will\nserve them that row\u0027s real content - including rows whose table has `DefaultGroups: adminsGroup`\n(admin-only by default, e.g. the built-in `calendar` table) or rows an ordinary user\u0027s own row-level\npermissions would otherwise forbid them from reading. Since YJS sync is bidirectional, a connected\nclient can also push edits, which legitimate collaborators may later pull back in through the\ncorrectly secured `/live/...` route, giving a write/corruption path as well as a read path.\n\n### PoC\n\nBuilt and ran current HEAD in a clean container; created two accounts (`admin@admin.com`, first\nsignup -\u003e admin; `bob@bob.com`, second signup -\u003e ordinary, non-admin user with default permissions\nonly):\n\n```bash\n# 1) Generic endpoint accepts ANY authenticated session for ANY document name,\n#    including a syntactically-valid-but-nonexistent reference_id on an admin-only table:\ncurl -i -N \\\n  -H \"Authorization: Bearer $BOB_TOKEN\" \\\n  -H \"Connection: Upgrade\" -H \"Upgrade: websocket\" \\\n  -H \"Sec-WebSocket-Version: 13\" -H \"Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\" \\\n  \"http://localhost:6336/yjs/calendar.deadbeef-0000-0000-0000-000000000000.content\"\n# =\u003e HTTP/1.1 101 Switching Protocols        \u003c-- ACCEPTED, no ownership/permission check at all\n\n# 2) The purpose-built, secured sibling route correctly validates the very same identifier:\ncurl -i -N \\\n  -H \"Authorization: Bearer $BOB_TOKEN\" \\\n  -H \"Connection: Upgrade\" -H \"Upgrade: websocket\" \\\n  -H \"Sec-WebSocket-Version: 13\" -H \"Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\" \\\n  \"http://localhost:6336/live/calendar/deadbeef-0000-0000-0000-000000000000/content/yjs\"\n# =\u003e HTTP/1.1 404 Not Found                  \u003c-- looks the row up, would 401 if it existed and Bob lacked access\n\n# 3) Sanity check: the generic endpoint DOES require *some* session (not fully unauthenticated) --\n#    the flaw is specifically the missing per-resource check, not a missing session check:\ncurl -i -N \\\n  -H \"Connection: Upgrade\" -H \"Upgrade: websocket\" \\\n  -H \"Sec-WebSocket-Version: 13\" -H \"Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==\" \\\n  \"http://localhost:6336/yjs/calendar.deadbeef-0000-0000-0000-000000000000.content\"\n# =\u003e HTTP/1.1 403 Forbidden\n```\n\n`bob@bob.com` has zero relationship to the `calendar` table (whose `DefaultGroups` is `adminsGroup`\n- admin-only by default) or to the fabricated reference ID, yet the generic route unconditionally\nupgrades the connection for him. Any real row\u0027s `typename.referenceId.columnName` - reference IDs\nroutinely appear in ordinary list/read API responses even when the sensitive column itself is\nrestricted - is enough to pull that column\u0027s actual content through this side channel, fully\nbypassing the row/column permission system that the sibling `/live/...` route (and the rest of\nDaptin\u0027s permission model) correctly enforces.\n\n### Impact\n\n- **Confidentiality:** any signed-up user, including a brand-new self-registered account with no\n  group memberships, can read the live content of any `file.*`-typed column on any row of any\n  table - including tables that are admin-only by default (e.g. `calendar`) and rows whose\n  row-level permissions would otherwise block that user - by supplying the right\n  `typename.referenceId.columnName` triple to `GET /yjs/:documentName`.\n- **Integrity:** because YJS sync is bidirectional CRDT replication, the same low-privileged\n  connection can push edits into the shared document; those edits are visible to any legitimate\n  collaborator who later opens the same document through the correctly-secured `/live/...` route.\n- **Who is impacted:** every Daptin deployment with at least one `file.*`-typed column (built-in\n  examples: `calendar.content` (`file.ical`), the generic document table\u0027s `document_content`\n  (`file.*`), and any custom table an admin defines with a `file.xxx` column type), since the\n  vulnerable route is registered generically for every such column across every table at startup.\n  Any user able to self-register (open signup is the default) is sufficient to exploit this.\n\n### Resolution\n\nFixed on the default branch in daptin/daptin@a1a3c48f. Canonical database-backed YJS rooms now use the same row lookup and existing PermissionInstance.CanUpdate/CanRead authorization for both /yjs/:documentName and /live/... routes. Update permission grants read-write access; read-only permission grants a read-only YJS session; unauthorized and missing resources fail closed with 404. Standalone non-canonical room names retain their existing authenticated, shared-by-name behavior. The initial-content provider now validates the exact canonical form, UUID, table, and file.* column before database access.\n\nRead-only protocol enforcement is provided by artpar/ydb v0.4.1 (artpar/ydb@b79b01a), which fully consumes but drops all client YJS sync write subtypes while continuing to deliver history and broadcasts.\n\nVerification included YDB race tests for all sync subtypes, concatenated-frame handling, persistence/broadcast suppression, catch-up, and connection continuity; Daptin permission/parser unit tests; the full Daptin test suite; server race tests; go vet; and a fresh-instance CLI/WebSocket exercise covering authentication, fail-closed canonical routes, standalone compatibility, and canonical/live cross-route relay.\n\nNo patched Daptin version is listed until a release containing a1a3c48f is published.",
  "id": "GHSA-wj7x-58c2-5793",
  "modified": "2026-11-20T00:14:14Z",
  "published": "2026-11-20T00:14:14Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/daptin/daptin/security/advisories/GHSA-wj7x-58c2-5793"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77369"
    },
    {
      "type": "WEB",
      "url": "https://github.com/daptin/daptin/commit/a1a3c48f88ce30632a57d3fe6a971033b23bd394"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/daptin/daptin"
    },
    {
      "type": "WEB",
      "url": "https://github.com/daptin/daptin/releases/tag/v0.12.30"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint"
}

GHSA-WJ9C-GX74-XRJR

Vulnerability from github – Published: 2025-04-24 09:30 – Updated: 2025-04-24 09:30
VLAI
Details

The Woocommerce Automatic Order Printing | ( Formerly WooCommerce Google Cloud Print) plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 4.1 via the xc_woo_printer_preview AJAX action due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with Subscriber-level access and above, to view other user's invoices and orders which can contain sensitive information.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2025-1284"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2025-04-24T09:15:29Z",
    "severity": "MODERATE"
  },
  "details": "The Woocommerce Automatic Order Printing | ( Formerly WooCommerce Google Cloud Print) plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 4.1 via the xc_woo_printer_preview AJAX action due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with Subscriber-level access and above, to view other user\u0027s invoices and orders which can contain sensitive information.",
  "id": "GHSA-wj9c-gx74-xrjr",
  "modified": "2025-04-24T09:30:34Z",
  "published": "2025-04-24T09:30:34Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-1284"
    },
    {
      "type": "WEB",
      "url": "https://codecanyon.net/item/woocommerce-google-cloud-print/21129093"
    },
    {
      "type": "WEB",
      "url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/6f593dce-4b56-46c0-becd-75fd16f165a8?source=cve"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-WJCP-46F7-9FQ7

Vulnerability from github – Published: 2024-03-31 21:30 – Updated: 2026-04-28 15:30
VLAI
Details

Authorization Bypass Through User-Controlled Key vulnerability in Ricard Torres Thumbs Rating.This issue affects Thumbs Rating: from n/a through 5.1.0.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2024-31095"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2024-03-31T19:15:47Z",
    "severity": "CRITICAL"
  },
  "details": "Authorization Bypass Through User-Controlled Key vulnerability in Ricard Torres Thumbs Rating.This issue affects Thumbs Rating: from n/a through 5.1.0.",
  "id": "GHSA-wjcp-46f7-9fq7",
  "modified": "2026-04-28T15:30:41Z",
  "published": "2024-03-31T21:30:35Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-31095"
    },
    {
      "type": "WEB",
      "url": "https://patchstack.com/database/Wordpress/Plugin/thumbs-rating/vulnerability/wordpress-thumbs-rating-plugin-5-1-0-insecure-direct-object-references-idor-vulnerability?_s_id=cve"
    },
    {
      "type": "WEB",
      "url": "https://patchstack.com/database/vulnerability/thumbs-rating/wordpress-thumbs-rating-plugin-5-1-0-insecure-direct-object-references-idor-vulnerability?_s_id=cve"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-WJFM-M42Q-5V68

Vulnerability from github – Published: 2026-10-08 06:31 – Updated: 2026-10-08 12:34
VLAI
Details

The Image Photo Gallery Final Tiles Grid WordPress plugin before 3.6.14 does not properly verify authorization on several of its gallery and image management actions, checking ownership against a different object than the one being acted on, or omitting the check entirely, allowing any authenticated user with contributor-level access or above to clone, modify and reorder galleries and images belonging to other users and to write Image Photo Gallery Final Tiles Grid WordPress plugin before 3.6.14 metadata onto arbitrary posts they do not own.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-104645"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-08T06:16:38Z",
    "severity": "LOW"
  },
  "details": "The Image Photo Gallery Final Tiles Grid WordPress plugin before 3.6.14 does not properly verify authorization on several of its gallery and image management actions, checking ownership against a different object than the one being acted on, or omitting the check entirely, allowing any authenticated user with contributor-level access or above to clone, modify and reorder galleries and images belonging to other users and to write Image Photo Gallery Final Tiles Grid WordPress plugin before 3.6.14 metadata onto arbitrary posts they do not own.",
  "id": "GHSA-wjfm-m42q-5v68",
  "modified": "2026-10-08T12:34:23Z",
  "published": "2026-10-08T06:31:19Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104645"
    },
    {
      "type": "WEB",
      "url": "https://wpscan.com/vulnerability/fe1a3c33-637c-426c-91f8-8b15f556b4b2"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-WJMP-G49R-XP3P

Vulnerability from github – Published: 2026-10-10 09:30 – Updated: 2026-10-10 09:30
VLAI
Details

The WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 5.0.2 via the 'email' parameter of the guest print_document_from_the_mail_link handler dispatched from print_window() on init. This is due to the handler authorizing access to an order's printable documents when the attacker-supplied (base64-encoded) 'email' equals the order's billing email — a non-secret identifier — instead of requiring the WooCommerce order_key. This makes it possible for unauthenticated attackers, when the site is configured to allow guest access to documents ('wt_pklist_print_button_access_for' != 'logged_in'), to retrieve any other customer's invoice, packing slip, delivery note, dispatch label or shipping label — including customer name, billing/shipping address, phone number, purchased products, prices, taxes and invoice metadata — by knowing the target order ID and the associated billing email address.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-93746"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-639"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-10T08:17:04Z",
    "severity": "HIGH"
  },
  "details": "The WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes \u0026 Shipping Labels plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 5.0.2 via the \u0027email\u0027 parameter of the guest print_document_from_the_mail_link handler dispatched from print_window() on init. This is due to the handler authorizing access to an order\u0027s printable documents when the attacker-supplied (base64-encoded) \u0027email\u0027 equals the order\u0027s billing email \u2014 a non-secret identifier \u2014 instead of requiring the WooCommerce order_key. This makes it possible for unauthenticated attackers, when the site is configured to allow guest access to documents (\u0027wt_pklist_print_button_access_for\u0027 != \u0027logged_in\u0027), to retrieve any other customer\u0027s invoice, packing slip, delivery note, dispatch label or shipping label \u2014 including customer name, billing/shipping address, phone number, purchased products, prices, taxes and invoice metadata \u2014 by knowing the target order ID and the associated billing email address.",
  "id": "GHSA-wjmp-g49r-xp3p",
  "modified": "2026-10-10T09:30:29Z",
  "published": "2026-10-10T09:30:29Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-93746"
    },
    {
      "type": "WEB",
      "url": "https://plugins.trac.wordpress.org/browser/print-invoices-packing-slip-labels-for-woocommerce/tags/5.0.1/admin/class-wf-woocommerce-packing-list-admin.php#L1127"
    },
    {
      "type": "WEB",
      "url": "https://plugins.trac.wordpress.org/browser/print-invoices-packing-slip-labels-for-woocommerce/tags/5.0.1/admin/class-wf-woocommerce-packing-list-admin.php#L1128"
    },
    {
      "type": "WEB",
      "url": "https://plugins.trac.wordpress.org/browser/print-invoices-packing-slip-labels-for-woocommerce/tags/5.0.1/admin/class-wf-woocommerce-packing-list-admin.php#L1149"
    },
    {
      "type": "WEB",
      "url": "https://plugins.trac.wordpress.org/browser/print-invoices-packing-slip-labels-for-woocommerce/tags/5.0.1/admin/class-wf-woocommerce-packing-list-admin.php#L990"
    },
    {
      "type": "WEB",
      "url": "https://plugins.trac.wordpress.org/changeset?reponame=\u0026new=3718644%40print-invoices-packing-slip-labels-for-woocommerce%2Ftags%2F5.0.3\u0026old=3707093%40print-invoices-packing-slip-labels-for-woocommerce%2Ftags%2F5.0.2"
    },
    {
      "type": "WEB",
      "url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/cf5ccfe6-c0e3-412f-9a93-2ccabb9997e7?source=cve"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}

Mitigation
Architecture and Design

For each and every data access, ensure that the user has sufficient privilege to access the record that is being requested.

Mitigation
Architecture and Design Implementation

Make sure that the key that is used in the lookup of a specific user's record is not controllable externally by the user or that any tampering can be detected.

Mitigation
Architecture and Design

Use encryption in order to make it more difficult to guess other legitimate values of the key or associate a digital signature with the key so that the server can verify that there has been no tampering.

No CAPEC attack patterns related to this CWE.