{"schemaVersion":3,"id":"CVE-2024-6886","aliases":["CGA-78c6-mpc6-x6fc","CGA-xh73-mmj2-p25c","GHSA-4h4p-553m-46qh","GO-2024-3056"],"status":"published","duplicateOf":null,"title":null,"description":"Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea Open Source Git Server allows Stored XSS.This issue affects Gitea Open Source Git Server: 1.22.0.","dates":{"published":"2024-08-06T03:23:21.692Z","modified":"2024-08-06T14:30:41.836Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":10,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":10,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":10,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":10,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":10,"severity":"critical","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.32968,"percentile":0.9835,"severity":"high","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.32968},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.32968,"percentile":0.9835}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.32968,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.32968,"percentile":0.9835}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"chainguard","product":"gitness","name":"gitness","label":"gitness","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gitness","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gitness","name":"gitness","label":"gitness","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gitness","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gitea","product":"gitea open source git server","name":"Gitea Open Source Git Server","label":"gitea open source git server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.22.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.22.0","eol":null,"hubHref":"/vendor/gitea/gitea_open_source_git_server"},{"vendor":"code.gitea.io","product":"gitea","name":"code.gitea.io/gitea","label":"gitea","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/code.gitea.io/gitea","purlType":"golang","versions":[{"text":"< 1.22.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.22.1","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/go-gitea/gitea/pull/31200","label":"github.com/go-gitea/gitea/pull/31200","hostname":"github.com","tags":["FIX","WEB"]},{"url":"https://blog.gitea.com/release-of-1.22.1/","label":"blog.gitea.com/release-of-1.22.1/","hostname":"blog.gitea.com","tags":["ARTICLE"]},{"url":"https://github.com/go-gitea/gitea/","label":"github.com/go-gitea/gitea/","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6886.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6886.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6886","label":"nvd.nist.gov/vuln/detail/CVE-2024-6886","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/go-gitea/gitea/commit/b6280f4d21309cfae7cc07f74173354c664d5e10","label":"github.com/go-gitea/gitea/commit/b6280f4d21309cfae7cc07f74173354c664d5e10","hostname":"github.com","tags":["WEB"]},{"url":"https://blog.gitea.com/release-of-1.22.1","label":"blog.gitea.com/release-of-1.22.1","hostname":"blog.gitea.com","tags":["WEB"]},{"url":"https://github.com/go-gitea/gitea","label":"github.com/go-gitea/gitea","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3056","label":"pkg.go.dev/vuln/GO-2024-3056","hostname":"pkg.go.dev","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-4h4p-553m-46qh","label":"github.com/advisories/GHSA-4h4p-553m-46qh","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-9P39-J825-9PMX","CGA-PXPW-M7V2-62FQ"]},"timeline":[{"kind":"published","date":"2024-08-06T03:23:21.692Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T14:30:41.836Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:26:03.340Z","stale":false,"partial":false}}