{"answers":{"affected":"1 open source package ship an affected version, including grafana. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-21725 in the wild and no public exploit code.","fix":"Upgrade grafana to 12.4.1 or later.","what":"CVE-2026-21725 is a low-severity vulnerability in Grafana Grafana, published on 25 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-21725 and fix it if it is affected.\n\nWhat it is: CVE-2026-21725 is a low-severity vulnerability in Grafana Grafana, published on 25 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-21725 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- grafana (Bitnami): affected from 11.0.0; fixed in 12.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-21725/ (Markdown: https://insights.sbomify.com/CVE-2026-21725/index.md)","id":"CVE-2026-21725","markdown":"https://insights.sbomify.com/CVE-2026-21725/index.md","name":"CVE-2026-21725","record":{"aliases":["BIT-grafana-2026-21725","GHSA-w36g-f98m-wm99","MINI-26hr-w278-wh82","MINI-2m4r-wh6v-jrv9","MINI-2wp4-2fv9-5v2j","MINI-3gv6-8c75-j4r6","MINI-3jp7-jhvp-hq8j","MINI-4gcm-wmw8-4f28","MINI-87wf-59qh-85v9","MINI-8f8g-4qfq-4r3w","MINI-9xch-gpcw-c8mf","MINI-f9vq-2gfr-hcv7","MINI-p7rq-3p85-vcfv","MINI-pr52-m586-68xr","MINI-qfxc-p552-3677","MINI-qx34-gcvx-68rg","MINI-rg3r-76v5-hg9x","MINI-rrvx-4hr2-2wj6","UBUNTU-CVE-2026-21725"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Grafana monitoring platform","requires_auth":"low_privilege","summary":"An attacker with prior admin access can delete a recreated datasource without permission due to a race condition, requiring strict timing and UID reuse.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GRAFANA","cpe":[{"product":"grafana","vendor":"grafana"}],"cvss":{"score":2.6,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"A time-of-create-to-time-of-use (TOCTOU) vulnerability lets recently deleted-then-recreated data sources be re-deleted without permission to do so.\n\nThis requires several very stringent conditions to be met:\n\n- The attacker must have admin access to the specific datasource prior to its first deletion.\n- Upon deletion, all steps within the attack must happen within the next 30 seconds and on the same pod of Grafana.\n- The attacker must delete the datasource, then someone must recreate it.\n- The new datasource must not have the attacker as an admin.\n- The new datasource must have the same UID as the prior datasource. These are randomised by default.\n- The datasource can now be re-deleted by the attacker.\n- Once 30 seconds are up, the attack is spent and cannot be repeated.\n- No datasource with any other UID can be attacked.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Authorization Bypass via TOCTOU in Grafana Datasource Deletion by Name","id":"CVE-2026-21725","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"grafana:grafana","products":["grafana:grafana"],"type":"race_condition","year":"2026"},"n_packages":1,"n_references":1,"next":{"headline":"Loki Path Traversal - CVE-2021-36156 Bypass","id":"CVE-2026-21726"},"packages":[{"ecosystem":"Bitnami","fixed":["12.4.1"],"introduced":["11.0.0"],"last_affected":[],"package":"grafana","purl":"pkg:bitnami/grafana","source":"BIT-grafana-2026-21725"}],"prev":{"headline":"Missing Protected-field Authorization in Provisioning Contact Points API","id":"CVE-2026-21724"},"products":["Grafana"],"published":"2026-02-25","related":[{"cvss_score":7.5,"headline":"Grafana Path Traversal","id":"CVE-2021-43798","kev_date_added":"2025-10-09","published":"2021-12-07"},{"cvss_score":10,"headline":"Incorrect privilege assignment","id":"CVE-2025-41115","kev_date_added":null,"published":"2025-11-21"},{"cvss_score":9.8,"headline":"Grafana vulnerable to race condition allowing privilege escalation","id":"CVE-2022-39328","kev_date_added":null,"published":"2022-11-08"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2022-28660","kev_date_added":null,"published":"2022-05-20"},{"cvss_score":9.8,"headline":"Information disclosure in n/a","id":"CVE-2022-26148","kev_date_added":null,"published":"2022-03-21"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2018-15727","kev_date_added":null,"published":"2018-08-29"},{"cvss_score":9.4,"headline":"Grafana SQL Expressions allow for remote code execution","id":"CVE-2024-9264","kev_date_added":null,"published":"2024-10-18"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-27","vendors":["Grafana"]},"summary":"An attacker with prior admin access can delete a recreated datasource without permission due to a race condition, requiring strict timing and UID reuse.","url":"https://insights.sbomify.com/CVE-2026-21725/"}