Skip to content

SECURITY BUG: when using alg none and secret is passed the library wasn't throwing an error #13

@woloski

Description

@woloski

Repro:

var jwt = require('jsonwebtoken');
jwt.verify('eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJzdWIiOjEyMzQ1Njc4OTAsIm5hbWUiOiJKb2huIERvZSIsImFkbWluIjp0cnVlfQ.', 'secret', function(err, payload) { 
   // payload should be null and err should have an error
});

fixed here dfddaa4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions