namshi/jose insecure JSON Web Signatures (JWS)
The advisory, in context
namshi/jose allows the acceptance of unsecure JSON Web Signatures (JWS) by default. The vulnerability arises from the $allowUnsecure flag, which, when set to true during the loading of JWSes, permits tokens signed with 'none' algorithms to be processed. This behavior poses a significant security risk as it could allow an attacker to impersonate users by crafting a valid jwt token.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
Earlier releases before 1.1.2
Fixed in 1.1.2
7 explicitly affected versions
1.0.0, 1.0.0-beta1, 1.0.0-rc1, 1.0.1, 1.0.2, 1.1.0, 1.1.1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0.0",
"1.0.0-beta1",
"1.0.0-rc1",
"1.0.1",
"1.0.2",
"1.1.0",
"1.1.1"
]
}From 1.2.0 before 1.2.2
Fixed in 1.2.2
2 explicitly affected versions
1.2.0, 1.2.1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.2.0"
},
{
"fixed": "1.2.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2.0",
"1.2.1"
]
}From 2.0.0 before 2.0.3
Fixed in 2.0.3
3 explicitly affected versions
2.0.0, 2.0.1, 2.0.2
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.0",
"2.0.1",
"2.0.2"
]
}From 2.1.0 before 2.1.2
Fixed in 2.1.2
2 explicitly affected versions
2.1.0, 2.1.1
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "2.1.0"
},
{
"fixed": "2.1.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.1.0",
"2.1.1"
]
}