Socket
Socket
Sign inDemoInstall

jose

Package Overview
Dependencies
Maintainers
1
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jose - npm Package Compare versions

Comparing version 1.28.1 to 1.28.2

8

lib/jwe/decrypt.js

@@ -43,3 +43,3 @@ const { inflateRawSync } = require('zlib')

*/
const jweDecrypt = (skipValidateHeaders, serialization, jwe, key, { crit = [], complete = false, algorithms } = {}) => {
const jweDecrypt = (skipValidateHeaders, serialization, jwe, key, { crit = [], complete = false, algorithms, maxPBES2Count = 10000 } = {}) => {
key = getKey(key, true)

@@ -128,2 +128,8 @@

if (alg.startsWith('PBES2')) {
if (opts && opts.p2c > maxPBES2Count) {
throw new errors.JWEInvalid('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds')
}
}
try {

@@ -130,0 +136,0 @@ if (alg === 'dir') {

2

package.json
{
"name": "jose",
"version": "1.28.1",
"version": "1.28.2",
"description": "JSON Web Almost Everything - JWA, JWS, JWE, JWK, JWT, JWKS for Node.js with minimal dependencies",

@@ -5,0 +5,0 @@ "keywords": [

@@ -409,2 +409,3 @@ /// <reference types="node" />

algorithms?: string[];
maxPBES2Count?: number;
}

@@ -411,0 +412,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc