Weak jwt encryption deceted
- Rule ID: javascript_jwt_weak_encryption
- Languages: javascript
- Source: jwt_weak_encryption.yml
Description
Use any default encryption algorithm jwt library provides
Remediations
Use the HS256 algorithm for JWT encryption
jwt.sign({ "foo": "bar"}, process.env.JWT_SECRET, {
algorithm: "HS256"
})