Skip to content

Commit 3732039

Browse files
committed
Fixes security CVE-2022-23529 in the Hello servers.
Signed-off-by: Exadra37 <[email protected]>
1 parent a900f96 commit 3732039

File tree

11 files changed

+709
-5649
lines changed

11 files changed

+709
-5649
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ APPROOV_BASE64_SECRET=approov_base64_secret_here
5656
Now, add to your `package.json` file the [JWT dependency](https://github.com/auth0/express-jwt):
5757

5858
```json
59-
"express-jwt": "^6.0.0"
59+
"express-jwt": "^8.3.0"
6060
```
6161

6262
Next, in your code require the JWT package:
6363

6464
```javascript
65-
const jwt = require('express-jwt')
65+
const { expressjwt: jwt } = require('express-jwt')
6666
```
6767
6868
Now, grab the Approov secret and set it into a constant:

docs/APPROOV_TOKEN_BINDING_QUICKSTART.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ api.use(cors())
116116
//////////////////
117117
118118
const dotenv = require('dotenv').config()
119-
const jwt = require('express-jwt')
119+
const { expressjwt: jwt } = require('express-jwt')
120120
const crypto = require('crypto')
121121
122122

docs/APPROOV_TOKEN_QUICKSTART.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ api.use(cors())
116116
//////////////////
117117
118118
const dotenv = require('dotenv').config()
119-
const jwt = require('express-jwt')
119+
const { expressjwt: jwt } = require('express-jwt')
120120
121121
122122
///////////////////

servers/hello/src/approov-protected-server/token-binding-check/hello-server-protected.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const debug = require('debug')('hello-server')
22
const dotenv = require('dotenv').config()
3-
const jwt = require('express-jwt')
3+
const { expressjwt: jwt } = require('express-jwt')
44
const crypto = require('crypto')
55
const express = require('express')
66
const cors = require('cors')

0 commit comments

Comments
 (0)