Skip to content

Commit

Permalink
Fix prototype pollution vulnerability.
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan McQuen <RyanMcQuen@stockx.com>
  • Loading branch information
Ryan McQuen authored and Ryan McQuen committed Jan 28, 2022
1 parent 354e1f8 commit 551bf40
Show file tree
Hide file tree
Showing 4 changed files with 743 additions and 990 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -96,7 +96,7 @@ The token can also be attached to the `result` object with the `resultProperty`
jwt({ secret: publicKey, algorithms: ['RS256'], resultProperty: 'locals.user' });
```

Both `resultProperty` and `requestProperty` utilize [lodash.set](https://lodash.com/docs/4.17.2#set) and will accept nested property paths.
Both `resultProperty` and `requestProperty` utilize [lodash.set](https://lodash.com/docs/4.17.15#set) and will accept nested property paths.

### Customizing Token Location

Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -2,7 +2,7 @@ var jwt = require('jsonwebtoken');
var UnauthorizedError = require('./errors/UnauthorizedError');
var unless = require('express-unless');
var async = require('async');
var set = require('lodash.set');
var set = require('lodash/set');

var DEFAULT_REVOKED_FUNCTION = function(_, __, cb) { return cb(null, false); };

Expand Down

0 comments on commit 551bf40

Please sign in to comment.