Welcome To openEuler Community
Hey @lipengyu001 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: Base-service ,
and any of the maintainers: @dillon_chen, @licihua, @overweight, @shenyangyang, @zhujianwei001 ,
and any of the committers: @yangyuan32, @zhuchunyi .


以下的要求不是强制性的, 未按模板评论时对issue无任何影响
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:
| 指令 | 指令说明 | 使用权限 |
|---|---|---|
| /check-issue | 触发defect-manager校验 | 不限 |
| /reason xxx | /reason +挂起或取消条件 | 不限 |
影响性分析说明:
缺陷严重等级:(Critical/High/Moderate/Low)
缺陷根因说明:
受影响版本排查(受影响/不受影响):
- openEuler-20.03-LTS-SP4:
- openEuler-22.03-LTS-SP3:
- openEuler-22.03-LTS-SP4:
- openEuler-24.03-LTS:
- openEuler-24.03-LTS-SP1:
- openEuler-24.03-LTS-SP2:
abi变化(是/否):
- openEuler-20.03-LTS-SP4:
- openEuler-22.03-LTS-SP3:
- openEuler-22.03-LTS-SP4:
- openEuler-24.03-LTS:
- openEuler-24.03-LTS-SP1:
- openEuler-24.03-LTS-SP2:
缺陷issue处理具体操作请参考:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://docs.atomgit.com/docs/help/home/org_project/pullrequests/pr-related-issue


测试代码tests/test_api_jws.py添加以下测试项,example_jws中包含不支持的参数项b64,'crit': ['b64'],执行decode期望捕获异常"Unsupported critical extension",且测试项成功,但测试项实际执行失败,未捕获到期望的异常。修改为 _supported_crit = set() 后,测试项成功。建议直接在原补丁上修改。
def test_decode_with_unsupported_argument(self, jws):
example_jws = ("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImNyaXQiOlsiYjY0Il0sImI2NCI6ZmFsc2V9.aGVsbG8gd29ybGQ.WIXC4E8uJ_Q8UJDpVC6KGSCBsd3jYhDErAIlakgNfyc")
example_secret = "secret"
with pytest.raises(InvalidTokenError) as exc:
jws.decode(example_jws, example_secret, algorithms=["HS256"])
assert (
'Unsupported critical extension: b64'
in str(exc.value)
)


b64参数项从以下提交新增,头一个支持版本为pyjwt-2.4.0
https://github.com/jpadilla/pyjwt/commit/1e7915613f4962d793b97a0db7bbe1661a59fa5a


backport-CVE-2026-32597-1.patch把 JWT 头部中的 b64 声明为“已支持的关键扩展”,但 PyJWT 2.3.0 PyJWT 1.7.0 实际并不支持 RFC 7797 的b64=false(未编码载荷)语义。 攻击者可构造带有: {"crit":["b64"],"b64":false}的令牌。backport-CVE-2026-32597-1.patch会因为认为 b64 已支持而接受该令牌,却没有真正按 b64=false 的规则处理载荷,违反了 JWS 对 crit 的要求:列入 crit 的扩展必须被完整理解和处理,否则必须拒绝令牌。
二、缺陷分析结构反馈
影响性分析说明:
缺陷严重等级:(Critical/High/Moderate/Low)
缺陷根因说明:
受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4:受影响
openEuler-22.03-LTS-SP3:受影响
openEuler-22.03-LTS-SP4:受影响
openEuler-24.03-LTS:不受影响
openEuler-24.03-LTS-SP1:不受影响
openEuler-24.03-LTS-SP2:不受影响
修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4:不涉及
openEuler-22.03-LTS-SP3:不涉及
openEuler-22.03-LTS-SP4:不涉及
openEuler-24.03-LTS:不影响
openEuler-24.03-LTS-SP1:不影响
openEuler-24.03-LTS-SP2:不影响