{"answers":{"affected":"9 open source packages ship an affected version, including github.com/golang-jwt/jwt, github.com/golang-jwt/jwt/v4 and github.com/golang-jwt/jwt/v5.","exploited":"There is no known exploitation of CVE-2025-30204 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2025-30204 is a high-severity denial of service vulnerability in golang-jwt jwt, published on 21 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-30204 and fix it if it is affected.\n\nWhat it is: CVE-2025-30204 is a high-severity denial of service vulnerability in golang-jwt jwt, published on 21 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-30204 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/golang-jwt/jwt (Go): affected all versions; no fix listed\n- github.com/golang-jwt/jwt (Go): affected from 3.2.0 up to 3.2.2; no fix listed\n- github.com/golang-jwt/jwt (Go): affected from 3.2.0 up to 3.2.2; no fix listed\n- github.com/golang-jwt/jwt/v4 (Go): affected all versions; fixed in 4.5.2\n- github.com/golang-jwt/jwt/v4 (Go): affected all versions; fixed in 4.5.2\n- github.com/golang-jwt/jwt/v4 (Go): affected all versions; fixed in 4.5.2\n- github.com/golang-jwt/jwt/v5 (Go): affected from 5.0.0-rc.1; fixed in 5.2.2\n- github.com/golang-jwt/jwt/v5 (Go): affected from 5.0.0-rc.1; fixed in 5.2.2\n- github.com/golang-jwt/jwt/v5 (Go): affected from 5.0.0-rc.1; fixed in 5.2.2\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-2025-30204/ (Markdown: https://insights.sbomify.com/CVE-2025-30204/index.md)","id":"CVE-2025-30204","markdown":"https://insights.sbomify.com/CVE-2025-30204/index.md","name":"CVE-2025-30204","record":{"aliases":["ALSA-2025:3344","ALSA-2025:4669","ALSA-2025:7404","ALSA-2025:7425","ALSA-2025:7475","ALSA-2025:7967","AZL-59159","AZL-59162","AZL-59165","AZL-59168","AZL-59169","AZL-59172","AZL-59177","AZL-59180","AZL-59183","AZL-59186","AZL-59193","AZL-59196","AZL-59204","AZL-59207","AZL-59209","AZL-59217","AZL-59220","AZL-59223","AZL-59227","AZL-59229","AZL-59233","AZL-59235","AZL-59239","AZL-59242","AZL-77490","AZL-77493","AZL-77496","AZL-77498","AZL-77508","AZL-77511","AZL-77514","AZL-77517","AZL-77520","AZL-77522","AZL-77535","CLEANSTART-2026-AU20661","CLEANSTART-2026-AX22930","CLSA-2025-1746655592","DEBIAN-CVE-2025-30204","GHSA-mh63-6h87-95cp","GO-2025-3553","MINI-242m-f8jj-h7jx","MINI-2639-mh68-8wwc","MINI-2895-gxfm-f57m","MINI-2cx4-9hwp-7vxg","MINI-33gp-389r-542r","MINI-34v5-w89x-vrcv","MINI-43rh-vmrh-47m9","MINI-45v3-3gpf-3fj9","MINI-4cf5-vp2j-4mh2","MINI-4f37-78m8-r742","MINI-4hw9-whvq-vjgf","MINI-5p4p-qmc8-9j4f","MINI-6396-c9wp-v86w","MINI-6phg-gfxv-47mq","MINI-6px4-6xj3-prv7","MINI-6qw8-5826-3w5w","MINI-747g-994j-gc4p","MINI-79x3-88cm-49mv","MINI-7fhp-v46f-6438","MINI-7v3q-pr6r-rhfm","MINI-8vr7-g57g-hr62","MINI-99r7-hfc7-6h2g","MINI-9qpc-p8j3-frh7","MINI-cfff-j77v-4p5v","MINI-cghj-229f-pmw7","MINI-cwv2-jwmg-v379","MINI-cwx9-ggpg-gcq5","MINI-f642-8jp5-v6hv","MINI-fhv8-5359-8c97","MINI-fjh3-5hrj-wrqm","MINI-g88c-m97v-hxj5","MINI-gff3-mrgj-5hhw","MINI-ggwf-xc87-jq5v","MINI-gmq5-58q6-f9cg","MINI-h4hq-qg5g-jp8q","MINI-h979-pp33-8xfx","MINI-hhp6-996x-75qc","MINI-hvxx-p6pm-w4w7","MINI-j24m-c9m5-97j2","MINI-jc2q-6x5r-qf7r","MINI-jm6q-7pj8-xgg5","MINI-pv5v-gc6w-vff7","MINI-q87h-vf43-2pf7","MINI-qg32-v54g-jjc7","MINI-qr59-542v-c366","MINI-qxcq-h67j-q7vf","MINI-rx8r-98h5-7ppj","MINI-vqxg-mhrr-985c","MINI-w4w6-9854-px4f","MINI-w58f-6wgv-4gpf","MINI-wh52-3q3q-v5x9","MINI-whpq-w39m-2792","MINI-wmf4-9wxf-7cr9","MINI-xc74-fc4m-pcmp","MINI-xx5h-69hf-rg8m","RHSA-2025:3411","RHSA-2025:3616","RHSA-2025:3618","RHSA-2025:3698","RHSA-2025:4462","RHSA-2025:4569","RHSA-2025:4669","RHSA-2025:7404","RHSA-2025:7425","RHSA-2025:7475","RHSA-2025:7503","RHSA-2025:7967","RHSA-2025:8075","RHSA-2025:8267","RLSA-2025:3344","RLSA-2025:3411","RLSA-2025:7967","ROOT-APP-GOBINARY-CVE-2025-30204","SUSE-SU-2025:02769-1","SUSE-SU-2025:1285-1","SUSE-SU-2026:0641-1","SUSE-SU-2026:0659-1","UBUNTU-CVE-2025-30204","openSUSE-SU-2025:14954-1","openSUSE-SU-2025:14956-1","openSUSE-SU-2025:14973-1","openSUSE-SU-2025:14989-1","openSUSE-SU-2025:15037-1","openSUSE-SU-2025:15418-1","openSUSE-SU-2025:15419-1","openSUSE-SU-2025:15606-1","openSUSE-SU-2026:10099-1","openSUSE-SU-2026:10100-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go JWT library","requires_auth":"none","summary":"An attacker can cause excessive memory allocation and denial of service by sending a JWT with many periods in the Authorization header.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-405","name":"Asymmetric Resource Consumption (Amplification)"}],"description":"golang-jwt is a Go implementation of JSON Web Tokens. Starting in version 3.2.0 and prior to versions 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer  followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Go","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Containers 15 SP7","SUSE:Linux Enterprise Module for Server Applications 15 SP6","SUSE:Linux Enterprise Module for Server Applications 15 SP7","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP6-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP6","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"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":"jwt-go allows excessive memory allocation during header parsing","id":"CVE-2025-30204","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":137,"n_references":3,"next":{"headline":"kanidm-provision leaks provisioned admin credentials into the system log","id":"CVE-2025-30205"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/golang-jwt/jwt","purl":"pkg:golang/github.com/golang-jwt/jwt","source":"GO-2025-3553"},{"ecosystem":"Go","fixed":[],"introduced":["3.2.0"],"last_affected":["3.2.2"],"package":"github.com/golang-jwt/jwt","purl":null,"source":"GHSA-mh63-6h87-95cp"},{"ecosystem":"Go","fixed":[],"introduced":["3.2.0"],"last_affected":["3.2.2"],"package":"github.com/golang-jwt/jwt","purl":"pkg:golang/github.com/golang-jwt/jwt","source":"GHSA-mh63-6h87-95cp"},{"ecosystem":"Go","fixed":["4.5.2"],"introduced":["0"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v4","purl":null,"source":"GHSA-mh63-6h87-95cp"},{"ecosystem":"Go","fixed":["4.5.2"],"introduced":["0"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v4","purl":"pkg:golang/github.com/golang-jwt/jwt/v4","source":"GHSA-mh63-6h87-95cp"},{"ecosystem":"Go","fixed":["4.5.2"],"introduced":["0"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v4","purl":"pkg:golang/github.com/golang-jwt/jwt/v4","source":"GO-2025-3553"},{"ecosystem":"Go","fixed":["5.2.2"],"introduced":["5.0.0-rc.1"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v5","purl":null,"source":"GHSA-mh63-6h87-95cp"},{"ecosystem":"Go","fixed":["5.2.2"],"introduced":["5.0.0-rc.1"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v5","purl":"pkg:golang/github.com/golang-jwt/jwt/v5","source":"GHSA-mh63-6h87-95cp"},{"ecosystem":"Go","fixed":["5.2.2"],"introduced":["5.0.0-rc.1"],"last_affected":[],"package":"github.com/golang-jwt/jwt/v5","purl":"pkg:golang/github.com/golang-jwt/jwt/v5","source":"GO-2025-3553"},{"ecosystem":"AlmaLinux:10","fixed":["10.2.6-15.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2025:7475"},{"ecosystem":"AlmaLinux:10","fixed":["10.2.6-15.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/almalinux/grafana-selinux","source":"ALSA-2025:7475"},{"ecosystem":"AlmaLinux:8","fixed":["101-3.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/almalinux/osbuild-composer","source":"ALSA-2025:7967"},{"ecosystem":"AlmaLinux:8","fixed":["101-3.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/almalinux/osbuild-composer-core","source":"ALSA-2025:7967"},{"ecosystem":"AlmaLinux:8","fixed":["101-3.el8_10.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/almalinux/osbuild-composer-worker","source":"ALSA-2025:7967"},{"ecosystem":"AlmaLinux:9","fixed":["10.2.6-11.el9_6"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2025:7404"},{"ecosystem":"AlmaLinux:9","fixed":["10.2.6-9.el9_5"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/almalinux/grafana","source":"ALSA-2025:3344"},{"ecosystem":"AlmaLinux:9","fixed":["10.2.6-11.el9_6"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/almalinux/grafana-selinux","source":"ALSA-2025:7404"},{"ecosystem":"AlmaLinux:9","fixed":["10.2.6-9.el9_5"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/almalinux/grafana-selinux","source":"ALSA-2025:3344"},{"ecosystem":"AlmaLinux:9","fixed":["118.2-1.el9_5.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/almalinux/osbuild-composer","source":"ALSA-2025:4669"},{"ecosystem":"AlmaLinux:9","fixed":["132.2-1.el9_6.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/almalinux/osbuild-composer","source":"ALSA-2025:7425"},{"ecosystem":"AlmaLinux:9","fixed":["118.2-1.el9_5.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/almalinux/osbuild-composer-core","source":"ALSA-2025:4669"},{"ecosystem":"AlmaLinux:9","fixed":["132.2-1.el9_6.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/almalinux/osbuild-composer-core","source":"ALSA-2025:7425"},{"ecosystem":"AlmaLinux:9","fixed":["118.2-1.el9_5.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/almalinux/osbuild-composer-worker","source":"ALSA-2025:4669"},{"ecosystem":"AlmaLinux:9","fixed":["132.2-1.el9_6.alma.1"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/almalinux/osbuild-composer-worker","source":"ALSA-2025:7425"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:10.2.6-15.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/redhat/grafana","source":"RHSA-2025:7475"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:10.2.6-15.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana-debuginfo","purl":"pkg:rpm/redhat/grafana-debuginfo","source":"RHSA-2025:7475"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:10.2.6-15.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana-debugsource","purl":"pkg:rpm/redhat/grafana-debugsource","source":"RHSA-2025:7475"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:10.2.6-15.el10_0"],"introduced":["0"],"last_affected":[],"package":"grafana-selinux","purl":"pkg:rpm/redhat/grafana-selinux","source":"RHSA-2025:7475"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:134.1-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/redhat/osbuild-composer","source":"RHSA-2025:7503"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:134.1-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/redhat/osbuild-composer-core","source":"RHSA-2025:7503"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:134.1-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-core-debuginfo","source":"RHSA-2025:7503"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:134.1-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-debugsource","purl":"pkg:rpm/redhat/osbuild-composer-debugsource","source":"RHSA-2025:7503"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:134.1-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-tests-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-tests-debuginfo","source":"RHSA-2025:7503"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:134.1-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker","purl":"pkg:rpm/redhat/osbuild-composer-worker","source":"RHSA-2025:7503"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:134.1-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-worker-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-worker-debuginfo","source":"RHSA-2025:7503"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer","purl":"pkg:rpm/redhat/osbuild-composer","source":"RHSA-2025:7967"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core","purl":"pkg:rpm/redhat/osbuild-composer-core","source":"RHSA-2025:7967"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-core-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-core-debuginfo","source":"RHSA-2025:7967"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-debuginfo","purl":"pkg:rpm/redhat/osbuild-composer-debuginfo","source":"RHSA-2025:7967"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:101-3.el8_10"],"introduced":["0"],"last_affected":[],"package":"osbuild-composer-debugsource","purl":"pkg:rpm/redhat/osbuild-composer-debugsource","source":"RHSA-2025:7967"}],"prev":{"headline":"Tuleap allows XSS via the content of RSS feeds in the RSS widgets","id":"CVE-2025-30203"},"products":["jwt"],"published":"2025-03-21","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-10","vendors":["golang-jwt"]},"summary":"An attacker can cause excessive memory allocation and denial of service by sending a JWT with many periods in the Authorization header.","url":"https://insights.sbomify.com/CVE-2025-30204/"}