{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-26022",
        "tracking": {
            "current_release_date": "2026-03-25T19:31:31.261500Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-26022",
            "initial_release_date": "2026-03-05T19:28:38.919328Z",
            "revision_history": [
                {
                    "date": "2026-03-05T19:28:38.919328Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (4).| CWES updated (1)."
                },
                {
                    "date": "2026-03-05T19:28:45.867906Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-03-05T19:38:58.304432Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (4).| CWES updated (1)."
                },
                {
                    "date": "2026-03-05T19:39:00.729402Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-05T19:52:37.287173Z",
                    "number": "5",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (5).| CWES updated (1)."
                },
                {
                    "date": "2026-03-05T19:52:47.157338Z",
                    "number": "6",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-05T22:48:54.065876Z",
                    "number": "7",
                    "summary": "References created (1)."
                },
                {
                    "date": "2026-03-06T00:12:41.906926Z",
                    "number": "8",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (5).| CWES updated (1)."
                },
                {
                    "date": "2026-03-06T11:07:39.712939Z",
                    "number": "9",
                    "summary": "Source connected.| CVE status created. (valid)| Products connected (1).| References created (8)."
                },
                {
                    "date": "2026-03-06T11:07:42.575850Z",
                    "number": "10",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-06T14:25:43.345958Z",
                    "number": "11",
                    "summary": "Products connected (1).| Product Identifiers created (1).| Exploits created (1)."
                },
                {
                    "date": "2026-03-06T14:25:45.572987Z",
                    "number": "12",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-06T14:56:44.207678Z",
                    "number": "13",
                    "summary": "Source created.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-03-06T14:56:48.257368Z",
                    "number": "14",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-06T18:38:36.038579Z",
                    "number": "15",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-03-07T05:38:53.293510Z",
                    "number": "16",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-03-09T11:29:43.479343Z",
                    "number": "17",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-10T04:38:54.234787Z",
                    "number": "18",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-03-10T04:38:58.746426Z",
                    "number": "19",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-20T09:45:02.652911Z",
                    "number": "20",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-03-20T09:45:12.531788Z",
                    "number": "21",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-25T18:14:44.526456Z",
                    "number": "22",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| References created (5)."
                },
                {
                    "date": "2026-03-25T18:14:46.425761Z",
                    "number": "23",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-03-25T19:25:55.609131Z",
                    "number": "24",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (58).| Products created (2).| References created (6).| CWES updated (1)."
                },
                {
                    "date": "2026-03-25T19:26:05.850955Z",
                    "number": "25",
                    "summary": "NCSC Score updated."
                }
            ],
            "status": "interim",
            "version": "25"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<0.14.2",
                                "product": {
                                    "name": "vers:unknown/<0.14.2",
                                    "product_id": "CSAFPID-5765852"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "Gogs"
                    }
                ],
                "category": "vendor",
                "name": "Open Source"
            },
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<0.14.2",
                                "product": {
                                    "name": "vers:unknown/<0.14.2",
                                    "product_id": "CSAFPID-5763736",
                                    "product_identification_helper": {
                                        "cpe": "cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*"
                                    }
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/>=0|<0.14.2",
                                "product": {
                                    "name": "vers:unknown/>=0|<0.14.2",
                                    "product_id": "CSAFPID-5764020"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.10",
                                "product": {
                                    "name": "vers:unknown/v0.10",
                                    "product_id": "CSAFPID-3280416"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.10.1",
                                "product": {
                                    "name": "vers:unknown/v0.10.1",
                                    "product_id": "CSAFPID-3280417"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.10.18",
                                "product": {
                                    "name": "vers:unknown/v0.10.18",
                                    "product_id": "CSAFPID-3280418"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.10.8",
                                "product": {
                                    "name": "vers:unknown/v0.10.8",
                                    "product_id": "CSAFPID-3280419"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.10rc",
                                "product": {
                                    "name": "vers:unknown/v0.10rc",
                                    "product_id": "CSAFPID-3280420"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11",
                                "product": {
                                    "name": "vers:unknown/v0.11",
                                    "product_id": "CSAFPID-3280421"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.19",
                                "product": {
                                    "name": "vers:unknown/v0.11.19",
                                    "product_id": "CSAFPID-3280422"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.29",
                                "product": {
                                    "name": "vers:unknown/v0.11.29",
                                    "product_id": "CSAFPID-3280423"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.33",
                                "product": {
                                    "name": "vers:unknown/v0.11.33",
                                    "product_id": "CSAFPID-3280424"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.34",
                                "product": {
                                    "name": "vers:unknown/v0.11.34",
                                    "product_id": "CSAFPID-3280425"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.4",
                                "product": {
                                    "name": "vers:unknown/v0.11.4",
                                    "product_id": "CSAFPID-3280426"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.43",
                                "product": {
                                    "name": "vers:unknown/v0.11.43",
                                    "product_id": "CSAFPID-3280427"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.53",
                                "product": {
                                    "name": "vers:unknown/v0.11.53",
                                    "product_id": "CSAFPID-3280428"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.66",
                                "product": {
                                    "name": "vers:unknown/v0.11.66",
                                    "product_id": "CSAFPID-3291653"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.79",
                                "product": {
                                    "name": "vers:unknown/v0.11.79",
                                    "product_id": "CSAFPID-3291654"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.86",
                                "product": {
                                    "name": "vers:unknown/v0.11.86",
                                    "product_id": "CSAFPID-3344968"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11.91",
                                "product": {
                                    "name": "vers:unknown/v0.11.91",
                                    "product_id": "CSAFPID-3377913"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.11rc",
                                "product": {
                                    "name": "vers:unknown/v0.11rc",
                                    "product_id": "CSAFPID-3280429"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.14.0",
                                "product": {
                                    "name": "vers:unknown/v0.14.0",
                                    "product_id": "CSAFPID-5573927"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.14.0-rc.1",
                                "product": {
                                    "name": "vers:unknown/v0.14.0-rc.1",
                                    "product_id": "CSAFPID-5573928"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.14.1",
                                "product": {
                                    "name": "vers:unknown/v0.14.1",
                                    "product_id": "CSAFPID-5909614"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.14.1-rc.1",
                                "product": {
                                    "name": "vers:unknown/v0.14.1-rc.1",
                                    "product_id": "CSAFPID-5909615"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.2.0",
                                "product": {
                                    "name": "vers:unknown/v0.2.0",
                                    "product_id": "CSAFPID-3280430"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.3.0",
                                "product": {
                                    "name": "vers:unknown/v0.3.0",
                                    "product_id": "CSAFPID-3280431"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.3.1",
                                "product": {
                                    "name": "vers:unknown/v0.3.1",
                                    "product_id": "CSAFPID-3280432"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.4.0",
                                "product": {
                                    "name": "vers:unknown/v0.4.0",
                                    "product_id": "CSAFPID-3280433"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.4.1",
                                "product": {
                                    "name": "vers:unknown/v0.4.1",
                                    "product_id": "CSAFPID-3280434"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.4.2",
                                "product": {
                                    "name": "vers:unknown/v0.4.2",
                                    "product_id": "CSAFPID-3280435"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5.0",
                                "product": {
                                    "name": "vers:unknown/v0.5.0",
                                    "product_id": "CSAFPID-3280436"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5.11",
                                "product": {
                                    "name": "vers:unknown/v0.5.11",
                                    "product_id": "CSAFPID-3280437"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5.13",
                                "product": {
                                    "name": "vers:unknown/v0.5.13",
                                    "product_id": "CSAFPID-3280438"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5.2",
                                "product": {
                                    "name": "vers:unknown/v0.5.2",
                                    "product_id": "CSAFPID-3280439"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5.5",
                                "product": {
                                    "name": "vers:unknown/v0.5.5",
                                    "product_id": "CSAFPID-3280440"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5.8",
                                "product": {
                                    "name": "vers:unknown/v0.5.8",
                                    "product_id": "CSAFPID-3280441"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.5.9",
                                "product": {
                                    "name": "vers:unknown/v0.5.9",
                                    "product_id": "CSAFPID-3280442"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6.0",
                                "product": {
                                    "name": "vers:unknown/v0.6.0",
                                    "product_id": "CSAFPID-3280443"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6.1",
                                "product": {
                                    "name": "vers:unknown/v0.6.1",
                                    "product_id": "CSAFPID-3280444"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6.15",
                                "product": {
                                    "name": "vers:unknown/v0.6.15",
                                    "product_id": "CSAFPID-3280445"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6.3",
                                "product": {
                                    "name": "vers:unknown/v0.6.3",
                                    "product_id": "CSAFPID-3280446"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6.5",
                                "product": {
                                    "name": "vers:unknown/v0.6.5",
                                    "product_id": "CSAFPID-3280447"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.6.9",
                                "product": {
                                    "name": "vers:unknown/v0.6.9",
                                    "product_id": "CSAFPID-3280448"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.7.0",
                                "product": {
                                    "name": "vers:unknown/v0.7.0",
                                    "product_id": "CSAFPID-3280449"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.7.19",
                                "product": {
                                    "name": "vers:unknown/v0.7.19",
                                    "product_id": "CSAFPID-3280450"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.7.22",
                                "product": {
                                    "name": "vers:unknown/v0.7.22",
                                    "product_id": "CSAFPID-3280451"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.7.33",
                                "product": {
                                    "name": "vers:unknown/v0.7.33",
                                    "product_id": "CSAFPID-3280452"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.7.6",
                                "product": {
                                    "name": "vers:unknown/v0.7.6",
                                    "product_id": "CSAFPID-3280453"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.8.0",
                                "product": {
                                    "name": "vers:unknown/v0.8.0",
                                    "product_id": "CSAFPID-3280454"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.8.10",
                                "product": {
                                    "name": "vers:unknown/v0.8.10",
                                    "product_id": "CSAFPID-3280455"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.8.25",
                                "product": {
                                    "name": "vers:unknown/v0.8.25",
                                    "product_id": "CSAFPID-3280456"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.8.43",
                                "product": {
                                    "name": "vers:unknown/v0.8.43",
                                    "product_id": "CSAFPID-3280457"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.0",
                                "product": {
                                    "name": "vers:unknown/v0.9.0",
                                    "product_id": "CSAFPID-3280458"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.113",
                                "product": {
                                    "name": "vers:unknown/v0.9.113",
                                    "product_id": "CSAFPID-3280459"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.128",
                                "product": {
                                    "name": "vers:unknown/v0.9.128",
                                    "product_id": "CSAFPID-3280460"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.13",
                                "product": {
                                    "name": "vers:unknown/v0.9.13",
                                    "product_id": "CSAFPID-3280461"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.141",
                                "product": {
                                    "name": "vers:unknown/v0.9.141",
                                    "product_id": "CSAFPID-3280462"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.46",
                                "product": {
                                    "name": "vers:unknown/v0.9.46",
                                    "product_id": "CSAFPID-3280463"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.48",
                                "product": {
                                    "name": "vers:unknown/v0.9.48",
                                    "product_id": "CSAFPID-3280464"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.60",
                                "product": {
                                    "name": "vers:unknown/v0.9.60",
                                    "product_id": "CSAFPID-3280465"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.71",
                                "product": {
                                    "name": "vers:unknown/v0.9.71",
                                    "product_id": "CSAFPID-3280466"
                                }
                            },
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/v0.9.97",
                                "product": {
                                    "name": "vers:unknown/v0.9.97",
                                    "product_id": "CSAFPID-3280467"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "gogs"
                    }
                ],
                "category": "vendor",
                "name": "gogs"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-26022",
            "cwe": {
                "id": "CWE-79",
                "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "Gogs is an open source self-hosted Git service. Prior to version 0.14.2, a stored cross-site scripting (XSS) vulnerability exists in the comment and issue description functionality. The application's HTML sanitizer explicitly allows data: URI schemes, enabling authenticated users to inject arbitrary JavaScript execution via malicious links. This issue has been patched in version 0.14.2.",
                    "title": "nvd - https://nvd.nist.gov/vuln/detail/CVE-2026-26022"
                },
                {
                    "category": "description",
                    "text": "Gogs is an open source self-hosted Git service. Prior to version 0.14.2, a stored cross-site scripting (XSS) vulnerability exists in the comment and issue description functionality. The application's HTML sanitizer explicitly allows data: URI schemes, enabling authenticated users to inject arbitrary JavaScript execution via malicious links. This issue has been patched in version 0.14.2.",
                    "title": "cveprojectv5 - https://www.cve.org/CVERecord?id=CVE-2026-26022"
                },
                {
                    "category": "description",
                    "text": "### Summary\nA Stored Cross-site Scripting (XSS) vulnerability exists in the comment and issue description functionality. The application's HTML sanitizer explicitly allows `data:` URI schemes, enabling authenticated users to inject arbitrary JavaScript execution via malicious links.\n\n### Details\nThe vulnerability is located in `internal/markup/sanitizer.go`. The application uses the `bluemonday` HTML sanitizer but explicitly weakens the security policy by allowing the `data` URL scheme:\n\n```go\n// internal/markup/sanitizer.go\nfunc NewSanitizer() {\n    sanitizer.init.Do(func() {\n        // ...\n        // Data URLs\n        sanitizer.policy.AllowURLSchemes(\"data\")\n        // ...\n    })\n}\n```\n\nWhile the Markdown renderer rewrites relative links (mitigating standard Markdown `[link](data:...)` attacks), Gogs supports **Raw HTML** input. Raw HTML anchor tags bypass the Markdown parser's link rewriting and are processed directly by the sanitizer. Since the sanitizer is configured to allow `data:` URIs, payloads like `<a href=\"data:text/html...\">` are rendered as-is.\n\n### PoC\n1.  Create a file named `exploit.md` in a repository.\n2.  Add the following content (Raw HTML):\n    ```html\n    <a href=\"data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4=\">Click me for XSS</a>\n    ```\n3.  Commit and push the file.\n4.  Navigate to the file in the Gogs web interface.\n5.  Click the \"Click me for XSS\" link.\n6.  **Result:** An alert box with \"XSS\" appears, executing the JavaScript payload.\n\n### Impact\nThis is a **Stored XSS** vulnerability. Any user who views the malicious comment and clicks the link will execute the attacker-supplied JavaScript in their browser context. This allows attackers to:\n*   Steal authentication cookies and session tokens.\n*   Perform arbitrary actions on behalf of the victim (e.g., modifying repositories, adding collaborators).\n*   Redirect users to malicious sites.",
                    "title": "github - https://github.com/advisories/GHSA-xrcr-gmf5-2r8j"
                },
                {
                    "category": "description",
                    "text": "### Summary\nA Stored Cross-site Scripting (XSS) vulnerability exists in the comment and issue description functionality. The application's HTML sanitizer explicitly allows `data:` URI schemes, enabling authenticated users to inject arbitrary JavaScript execution via malicious links.\n\n### Details\nThe vulnerability is located in `internal/markup/sanitizer.go`. The application uses the `bluemonday` HTML sanitizer but explicitly weakens the security policy by allowing the `data` URL scheme:\n\n```go\n// internal/markup/sanitizer.go\nfunc NewSanitizer() {\n    sanitizer.init.Do(func() {\n        // ...\n        // Data URLs\n        sanitizer.policy.AllowURLSchemes(\"data\")\n        // ...\n    })\n}\n```\n\nWhile the Markdown renderer rewrites relative links (mitigating standard Markdown `[link](data:...)` attacks), Gogs supports **Raw HTML** input. Raw HTML anchor tags bypass the Markdown parser's link rewriting and are processed directly by the sanitizer. Since the sanitizer is configured to allow `data:` URIs, payloads like `<a href=\"data:text/html...\">` are rendered as-is.\n\n### PoC\n1.  Create a file named `exploit.md` in a repository.\n2.  Add the following content (Raw HTML):\n    ```html\n    <a href=\"data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4=\">Click me for XSS</a>\n    ```\n3.  Commit and push the file.\n4.  Navigate to the file in the Gogs web interface.\n5.  Click the \"Click me for XSS\" link.\n6.  **Result:** An alert box with \"XSS\" appears, executing the JavaScript payload.\n\n### Impact\nThis is a **Stored XSS** vulnerability. Any user who views the malicious comment and clicks the link will execute the attacker-supplied JavaScript in their browser context. This allows attackers to:\n*   Steal authentication cookies and session tokens.\n*   Perform arbitrary actions on behalf of the victim (e.g., modifying repositories, adding collaborators).\n*   Redirect users to malicious sites.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-xrcr-gmf5-2r8j.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "Gogs: Stored XSS via data URI in issue comments in gogs.io/gogs.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: gogs.io/gogs before v0.14.2.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4620.json?alt=media"
                },
                {
                    "category": "description",
                    "text": "Gogs is an open source self-hosted Git service. Prior to version 0.14.2, a stored cross-site scripting (XSS) vulnerability exists in the comment and issue description functionality. The application's HTML sanitizer explicitly allows data: URI schemes, enabling authenticated users to inject arbitrary JavaScript execution via malicious links. This issue has been patched in version 0.14.2.",
                    "title": "osv - https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-26022.json?alt=media"
                },
                {
                    "category": "other",
                    "text": "0.00036",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "4.5",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "There is product data available from source Certbundde",
                    "title": "NCSC Score top increasing factors"
                },
                {
                    "category": "other",
                    "text": "The value of the most recent EPSS score, Is related to (a version of) an uncommon product, The CVSS vector string contains A:H (Availability Impact: High), There is exploit data available from source Nvd",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5763736",
                    "CSAFPID-5764020",
                    "CSAFPID-5765852",
                    "CSAFPID-3280416",
                    "CSAFPID-3280417",
                    "CSAFPID-3280418",
                    "CSAFPID-3280419",
                    "CSAFPID-3280420",
                    "CSAFPID-3280421",
                    "CSAFPID-3280422",
                    "CSAFPID-3280423",
                    "CSAFPID-3280424",
                    "CSAFPID-3280425",
                    "CSAFPID-3280426",
                    "CSAFPID-3280427",
                    "CSAFPID-3280428",
                    "CSAFPID-3280429",
                    "CSAFPID-3280430",
                    "CSAFPID-3280431",
                    "CSAFPID-3280432",
                    "CSAFPID-3280433",
                    "CSAFPID-3280434",
                    "CSAFPID-3280435",
                    "CSAFPID-3280436",
                    "CSAFPID-3280437",
                    "CSAFPID-3280438",
                    "CSAFPID-3280439",
                    "CSAFPID-3280440",
                    "CSAFPID-3280441",
                    "CSAFPID-3280442",
                    "CSAFPID-3280443",
                    "CSAFPID-3280444",
                    "CSAFPID-3280445",
                    "CSAFPID-3280446",
                    "CSAFPID-3280447",
                    "CSAFPID-3280448",
                    "CSAFPID-3280449",
                    "CSAFPID-3280450",
                    "CSAFPID-3280451",
                    "CSAFPID-3280452",
                    "CSAFPID-3280453",
                    "CSAFPID-3280454",
                    "CSAFPID-3280455",
                    "CSAFPID-3280456",
                    "CSAFPID-3280457",
                    "CSAFPID-3280458",
                    "CSAFPID-3280459",
                    "CSAFPID-3280460",
                    "CSAFPID-3280461",
                    "CSAFPID-3280462",
                    "CSAFPID-3280463",
                    "CSAFPID-3280464",
                    "CSAFPID-3280465",
                    "CSAFPID-3280466",
                    "CSAFPID-3280467",
                    "CSAFPID-3291653",
                    "CSAFPID-3291654",
                    "CSAFPID-3344968",
                    "CSAFPID-3377913",
                    "CSAFPID-5573927",
                    "CSAFPID-5573928",
                    "CSAFPID-5909614",
                    "CSAFPID-5909615"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-26022"
                },
                {
                    "category": "external",
                    "summary": "Source raw - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-26022"
                },
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://www.cve.org/CVERecord?id=CVE-2026-26022"
                },
                {
                    "category": "external",
                    "summary": "Source raw - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/26xxx/CVE-2026-26022.json"
                },
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://github.com/advisories/GHSA-xrcr-gmf5-2r8j"
                },
                {
                    "category": "external",
                    "summary": "Source raw - github",
                    "url": "https://api.github.com/advisories/GHSA-xrcr-gmf5-2r8j"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGHSA-xrcr-gmf5-2r8j.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - certbundde",
                    "url": "https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-0623.json"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-26022"
                },
                {
                    "category": "external",
                    "summary": "Source raw - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/Go%2FGO-2026-4620.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Source - osv",
                    "url": "https://www.googleapis.com/download/storage/v1/b/osv-vulnerabilities/o/GIT%2FCVE-2026-26022.json?alt=media"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd; osv",
                    "url": "https://github.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd; osv",
                    "url": "https://github.com/gogs/gogs/pull/8174"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd; osv",
                    "url": "https://github.com/gogs/gogs/releases/tag/v0.14.2"
                },
                {
                    "category": "external",
                    "summary": "Reference - certbundde; cveprojectv5; github; nvd; osv",
                    "url": "https://github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://github.com/advisories/GHSA-xrcr-gmf5-2r8j"
                },
                {
                    "category": "external",
                    "summary": "Reference - github; osv",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-26022"
                },
                {
                    "category": "external",
                    "summary": "Reference - certbundde",
                    "url": "https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-0623.json"
                },
                {
                    "category": "external",
                    "summary": "Reference - certbundde",
                    "url": "https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-0623"
                },
                {
                    "category": "external",
                    "summary": "Reference - certbundde",
                    "url": "https://github.com/gogs/gogs/security/advisories/GHSA-cj4v-437j-jq4c"
                },
                {
                    "category": "external",
                    "summary": "Reference - certbundde",
                    "url": "https://github.com/gogs/gogs/security/advisories/GHSA-v9vm-r24h-6rqm"
                },
                {
                    "category": "external",
                    "summary": "Reference - certbundde",
                    "url": "https://github.com/gogs/gogs/security/advisories/GHSA-vgjm-2cpf-4g7c"
                },
                {
                    "category": "external",
                    "summary": "Reference - certbundde",
                    "url": "https://github.com/gogs/gogs/security/advisories/GHSA-vgvf-m4fw-938j"
                },
                {
                    "category": "external",
                    "summary": "Reference - certbundde",
                    "url": "https://github.com/gogs/gogs/security/advisories/GHSA-x9p5-w45c-7ffc"
                },
                {
                    "category": "external",
                    "summary": "Reference - osv",
                    "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26022.json"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N",
                        "baseScore": 8.7,
                        "baseSeverity": "HIGH"
                    },
                    "products": [
                        "CSAFPID-3280416",
                        "CSAFPID-3280417",
                        "CSAFPID-3280418",
                        "CSAFPID-3280419",
                        "CSAFPID-3280420",
                        "CSAFPID-3280421",
                        "CSAFPID-3280422",
                        "CSAFPID-3280423",
                        "CSAFPID-3280424",
                        "CSAFPID-3280425",
                        "CSAFPID-3280426",
                        "CSAFPID-3280427",
                        "CSAFPID-3280428",
                        "CSAFPID-3280429",
                        "CSAFPID-3280430",
                        "CSAFPID-3280431",
                        "CSAFPID-3280432",
                        "CSAFPID-3280433",
                        "CSAFPID-3280434",
                        "CSAFPID-3280435",
                        "CSAFPID-3280436",
                        "CSAFPID-3280437",
                        "CSAFPID-3280438",
                        "CSAFPID-3280439",
                        "CSAFPID-3280440",
                        "CSAFPID-3280441",
                        "CSAFPID-3280442",
                        "CSAFPID-3280443",
                        "CSAFPID-3280444",
                        "CSAFPID-3280445",
                        "CSAFPID-3280446",
                        "CSAFPID-3280447",
                        "CSAFPID-3280448",
                        "CSAFPID-3280449",
                        "CSAFPID-3280450",
                        "CSAFPID-3280451",
                        "CSAFPID-3280452",
                        "CSAFPID-3280453",
                        "CSAFPID-3280454",
                        "CSAFPID-3280455",
                        "CSAFPID-3280456",
                        "CSAFPID-3280457",
                        "CSAFPID-3280458",
                        "CSAFPID-3280459",
                        "CSAFPID-3280460",
                        "CSAFPID-3280461",
                        "CSAFPID-3280462",
                        "CSAFPID-3280463",
                        "CSAFPID-3280464",
                        "CSAFPID-3280465",
                        "CSAFPID-3280466",
                        "CSAFPID-3280467",
                        "CSAFPID-3291653",
                        "CSAFPID-3291654",
                        "CSAFPID-3344968",
                        "CSAFPID-3377913",
                        "CSAFPID-5573927",
                        "CSAFPID-5573928",
                        "CSAFPID-5763736",
                        "CSAFPID-5764020",
                        "CSAFPID-5765852",
                        "CSAFPID-5909614",
                        "CSAFPID-5909615"
                    ]
                }
            ],
            "title": "CVE-2026-26022"
        }
    ]
}