Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-115321 Overview
CVE-2026-115321 is an authorization bypass vulnerability in Bytebase versions prior to 3.16.0. The flaw resides in the UpdateIssueComment handler, which fails to validate that a referenced comment belongs to the parent issue supplied in the request. Low-privileged project members, including users with the Project Viewer role, can supply a foreign comment UID and overwrite comments in projects they cannot otherwise access. The weakness is categorized as [CWE-639] Authorization Bypass Through User-Controlled Key, commonly known as Insecure Direct Object Reference (IDOR).
Critical Impact
Any authenticated user holding a project role in one Bytebase project can modify issue comments belonging to arbitrary other projects by referencing a cross-project comment UID.
Affected Products
- Bytebase versions prior to 3.16.0
- Bytebase 3.15.1 (confirmed vulnerable issue_service.go handler)
- Self-hosted and container deployments of Bytebase running affected releases
Discovery Timeline
- 2026-10-22 - CVE-2026-115321 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-115321
Vulnerability Analysis
Bytebase exposes a gRPC/Connect API that lets project members update comments attached to issues. The UpdateIssueComment handler in backend/api/v1/issue_service.go parses two inputs: a Parent field identifying the owning issue, and an IssueComment.Name field containing the target comment's path. In vulnerable releases, the handler only extracts the comment UID and loads the comment directly by that UID. It never checks that the comment actually belongs to the parent issue the caller provided.
This logic lets an attacker use an issue they legitimately own as the parent, then reference a comment UID that belongs to a different project's issue. Because the authorization check runs against the attacker-controlled parent issue, access evaluation succeeds. The handler then writes the update against the foreign comment record, modifying content outside the caller's authorization scope.
Root Cause
The root cause is a missing ownership check between two user-supplied identifiers. The code trusts the Parent for permission evaluation but trusts the IssueComment.Name for record lookup, with no cross-validation. This is the classic shape of [CWE-639]: authorization decisions are based on one object key while the operation targets another.
Attack Vector
Exploitation requires network access to the Bytebase API and a valid session with any project role. An attacker enumerates or guesses an issueCommentUID from a target project, then issues an UpdateIssueComment request where Parent points to an issue in their own project and IssueComment.Name embeds the foreign UID. The server accepts the request and overwrites the targeted comment, enabling tampering with audit trails, change-approval discussions, or database-review workflows.
// Source: https://github.com/bytebase/bytebase/commit/270e25529731b59988b58f4a4b3bda431c748bc9
// Patch: validate issue ownership in UpdateIssueComment to prevent IDOR (#19552)
return nil, connect.NewError(connect.CodeInternal, errors.Errorf("user not found"))
}
- _, _, issueCommentUID, err := common.GetProjectIDIssueUIDIssueCommentUID(req.Msg.IssueComment.Name)
+ _, parentIssueUID, err := common.GetProjectIDIssueUID(req.Msg.Parent)
+ if err != nil {
+ return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid parent %q: %v", req.Msg.Parent, err))
+ }
+
+ _, commentIssueUID, issueCommentUID, err := common.GetProjectIDIssueUIDIssueCommentUID(req.Msg.IssueComment.Name)
if err != nil {
return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid comment name %q: %v", req.Msg.IssueComment.Name, err))
}
- issueComment, err := s.store.GetIssueComment(ctx, &store.FindIssueCommentMessage{UID: &issueCommentUID})
+ if parentIssueUID != commentIssueUID {
+ return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("issue comment %q does not belong to parent %q", req.Msg.IssueComment.Name, req.Msg.Parent))
+ }
+ issueComment, err := s.store.GetIssueComment(ctx, &store.FindIssueCommentMessage{UID: &issueCommentUID, IssueUID: &parentIssueUID})
if err != nil {
return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to get issue comment: %v", err))
}
The fix parses both the parent and the comment name, rejects the request when the issue UIDs do not match, and scopes the datastore query by both UID and IssueUID. Source: Bytebase Commit Details.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-115321
Indicators of Compromise
- UpdateIssueComment API calls where the Parent project differs from the project associated with the referenced IssueComment.Name.
- Audit log entries showing comment modifications performed by users who lack a role on the comment's owning project.
- Sudden edits to historical comments on closed issues or change-approval records.
Detection Strategies
- Replay application logs through a log analytics layer and alert when the project IDs parsed from Parent and IssueComment.Name are not equal.
- Baseline per-user comment-edit activity across projects and flag users editing comments outside their assigned project memberships.
- Correlate Bytebase API logs with identity data to detect low-privilege roles, such as Project Viewer, performing write operations on cross-project resources.
Monitoring Recommendations
- Enable verbose audit logging on the Bytebase API and ship events to a centralized SIEM for long-term retention.
- Monitor for anomalous UpdateIssueComment request volume from a single principal targeting many distinct comment UIDs.
- Track Bytebase version strings across deployments to confirm all instances report 3.16.0 or later.
How to Mitigate CVE-2026-115321
Immediate Actions Required
- Upgrade all Bytebase instances to version 3.16.0 or later, which contains the ownership validation fix in UpdateIssueComment.
- Review audit logs for UpdateIssueComment activity since the first affected release and identify cross-project comment modifications.
- Restrict network exposure of the Bytebase API to trusted internal networks until the upgrade is complete.
Patch Information
Bytebase addressed the vulnerability in release 3.16.0. The fix is implemented in commit 270e25529731b59988b58f4a4b3bda431c748bc9 and tracked under pull request #19552, which was opened to resolve issue #19369. For release artifacts and upgrade notes, see the Bytebase Release Notes 3.16.0 and the VulnCheck Advisory for Bytebase.
Workarounds
- Reduce the number of users granted any project role, since even the Project Viewer role is sufficient to exploit this issue.
- Place the Bytebase API behind an authenticating reverse proxy that can inspect and reject UpdateIssueComment requests where the parent and comment paths reference different projects.
- Temporarily disable issue commenting workflows for low-trust users until patched builds are deployed.
# Verify installed Bytebase version and upgrade to the fixed release
docker inspect bytebase/bytebase --format '{{.Config.Image}}'
# Pull and run the patched release
docker pull bytebase/bytebase:3.16.0
docker stop bytebase && docker rm bytebase
docker run --init --name bytebase \
--restart always \
--publish 8080:8080 \
--volume ~/.bytebase/data:/var/opt/bytebase \
bytebase/bytebase:3.16.0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

