Skip to content
Heist/ feed
Back to feed
Low

Improper Encoding or Escaping of Output in GitLab

Type: advisorySources: OSV

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 15.5 before 18.7.6, 18.8 before 18.8.6, and 18.9 before 18.9.2 that could have allowed an authenticated user with maintainer-role permissions to reveal Datadog API credentials under certain conditions.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-12697
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 16:18 UTC · Revision 1

Source evidence

Improper Encoding or Escaping of Output in GitLab

core-osv · Original source

Published 11 Mar 2026, 16:06 UTC

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 15.5 before 18.7.6, 18.8 before 18.8.6, and 18.9 before 18.9.2 that could have allowed an authenticated user with maintainer-role permissions to reveal Datadog API credentials under certain conditions.

osv:CVE-2025-12697
Complete source record
{
  "id": "29d71a99675cef17f8fd89ea5194ab5d2f2764c19c298b301195f875e52192cf",
  "url": "https://osv.dev/vulnerability/CVE-2025-12697",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper Encoding or Escaping of Output in GitLab",
    "summary": "GitLab has remediated an issue in GitLab CE/EE affecting all versions from 15.5 before 18.7.6, 18.8 before 18.8.6, and 18.9 before 18.9.2 that could have allowed an authenticated user with maintainer-role permissions to reveal Datadog API credentials under certain conditions.",
    "evidence": "osv:CVE-2025-12697",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2025-12697",
      "aliases": [
        "BIT-gitlab-2025-12697",
        "CVE-2025-12697"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/gitlab-org/gitlab",
              "type": "GIT",
              "events": [
                {
                  "introduced": "af0fced4dd2e767d361f2bdc0732be15ad2c1026"
                },
                {
                  "fixed": "4ff507582a71b3fee0ef5a34e7ab583281391758"
                },
                {
                  "introduced": "1010a9b2b769993080ce8399fd25e77c54e1ad1c"
                },
                {
                  "fixed": "5831acc89ce4c662f751bb062d1df3bcf2b8cb4e"
                },
                {
                  "introduced": "20fe49b575fedd2b8cadc2c0640178879854aeb3"
                },
                {
                  "fixed": "fcb80522240b3ea1821ac6c2d52b00159bcda5a6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "15.5.0"
                      },
                      {
                        "fixed": "18.7.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "15.5.0"
                      },
                      {
                        "fixed": "18.7.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "18.8.0"
                      },
                      {
                        "fixed": "18.8.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "18.8.0"
                      },
                      {
                        "fixed": "18.8.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "18.9.0"
                      },
                      {
                        "fixed": "18.9.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "18.9.0"
                      },
                      {
                        "fixed": "18.9.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v18.9.0-ee",
            "v18.8.1-ee",
            "v18.8.3-ee",
            "v18.8.0-ee"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-12697.json"
          }
        }
      ],
      "modified": "2026-10-30T10:30:45.257586461Z",
      "provider": "osv",
      "references": [
        "https://about.gitlab.com/releases/2026/03/11/patch-release-gitlab-18-9-2-released/",
        "https://gitlab.com/gitlab-org/gitlab/-/work_items/579504",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12697.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-12697",
        "https://hackerone.com/reports/3341953"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-116"
        ],
        "cna_assigner": "GitLab",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "15.5"
                  },
                  {
                    "fixed": "18.7.6"
                  },
                  {
                    "introduced": "18.8"
                  },
                  {
                    "fixed": "18.8.6"
                  },
                  {
                    "introduced": "18.9"
                  },
                  {
                    "fixed": "18.9.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "15.5"
                  },
                  {
                    "fixed": "18.7.6"
                  },
                  {
                    "introduced": "18.8"
                  },
                  {
                    "fixed": "18.8.6"
                  },
                  {
                    "introduced": "18.9"
                  },
                  {
                    "fixed": "18.9.2"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12697.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-12697",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 512379,
  "published_at": "2026-03-11T16:06:00.688+00:00"
}