{"answers":{"affected":"3 open source packages ship an affected version, including joserfc.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49852 exists.","fix":"Upgrade joserfc to 1.6.8 or later.","what":"CVE-2026-49852 is a high-severity authentication bypass vulnerability in authlib joserfc, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-49852 and fix it if it is affected.\n\nWhat it is: CVE-2026-49852 is a high-severity authentication bypass vulnerability in authlib joserfc, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-49852 exists.\n\nAffected packages and fixed versions:\n- joserfc (PyPI): affected all versions; fixed in 1.6.8\n- joserfc (PyPI): affected all versions; fixed in 1.6.8\n- joserfc (PyPI): affected all versions; fixed in 1.6.8\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-49852/ (Markdown: https://insights.sbomify.com/CVE-2026-49852/index.md)","id":"CVE-2026-49852","markdown":"https://insights.sbomify.com/CVE-2026-49852/index.md","name":"CVE-2026-49852","record":{"aliases":["CLEANSTART-2026-RP49018","DEBIAN-CVE-2026-49852","ECHO-9e9b-2656-ec45","GHSA-gg9x-qcx2-xmrh","MINI-f63x-qq5v-whfv","PYSEC-2026-2528","RHSA-2026:42045","ROOT-APP-PYPI-CVE-2026-49852","UBUNTU-CVE-2026-49852","openSUSE-SU-2026:11183-1","openSUSE-SU-2026:21263-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python JOSE library","requires_auth":"none","summary":"Attackers can forge HMAC-signed JWTs by using empty or nil keys, bypassing authentication in applications using the joserfc library.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-326","name":"Inadequate Encryption Strength"},{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-1391","name":"Use of Weak Credentials"}],"description":"joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. Prior to 1.6.8, joserfc.jwt.decode accepts attacker-forged HMAC-signed tokens when the caller-supplied verification key is the empty string or None, because HMACAlgorithm.sign and HMACAlgorithm.verify in src/joserfc/_rfc7518/jws_algs.py pass the output of OctKey.get_op_key(...) to hmac.new(...) and OctKey.import_key in src/joserfc/_rfc7518/oct_key.py only emits a SecurityWarning for keys shorter than 14 bytes without rejecting zero-length input. This issue is fixed in version 1.6.8.","ecosystems":["PyPI","Red Hat:hummingbird:1","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"joserfc: HS256/HS384/HS512 verify accepts empty/nil HMAC key (cross-language sibling of CVE-2026-45363)","id":"CVE-2026-49852","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":6,"n_references":3,"next":{"headline":"Tornado: Authorization header forwarded across cross-origin redirects in SimpleAsyncHTTPClient","id":"CVE-2026-49853"},"packages":[{"ecosystem":"PyPI","fixed":["1.6.8"],"introduced":["0"],"last_affected":[],"package":"joserfc","purl":null,"source":"GHSA-gg9x-qcx2-xmrh"},{"ecosystem":"PyPI","fixed":["1.6.8"],"introduced":["0"],"last_affected":[],"package":"joserfc","purl":"pkg:pypi/joserfc","source":"GHSA-gg9x-qcx2-xmrh"},{"ecosystem":"PyPI","fixed":["1.6.8"],"introduced":["0"],"last_affected":[],"package":"joserfc","purl":"pkg:pypi/joserfc","source":"PYSEC-2026-2528"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:2.19.0-1.2.hum1"],"introduced":["0"],"last_affected":[],"package":"jaeger","purl":"pkg:rpm/redhat/jaeger","source":"RHSA-2026:42045"},{"ecosystem":"openSUSE:Leap 16.0","fixed":["1.1.0-bp160.3.1"],"introduced":["0"],"last_affected":[],"package":"python-joserfc","purl":"pkg:rpm/opensuse/python-joserfc\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:21263-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.7.2-2.1"],"introduced":["0"],"last_affected":[],"package":"python-joserfc","purl":"pkg:rpm/opensuse/python-joserfc\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11183-1"}],"prev":{"headline":"Mistune: Potential DoS via quadratic-time parsing in parse_link_text","id":"CVE-2026-49851"},"products":["joserfc"],"published":"2026-07-17","related":[],"sources":[{"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":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["authlib"]},"summary":"Attackers can forge HMAC-signed JWTs by using empty or nil keys, bypassing authentication in applications using the joserfc library.","url":"https://insights.sbomify.com/CVE-2026-49852/"}