Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2022-29214: Release [email protected] · nextauthjs/next-auth

NextAuth.js (next-auth) is am open source authentication solution for Next.js applications. Prior to versions 3.29.3 and 4.3.3, an open redirect vulnerability is present when the developer is implementing an OAuth 1 provider. Versions 3.29.3 and 4.3.3 contain a patch for this issue. The maintainers recommend adding a certain configuration to one’s callbacks option as a workaround for those unable to upgrade.

CVE
#vulnerability#js#oauth#auth

Compare

Choose a tag to compare

[email protected]

balazsorban44 released this

· 32 commits to main since this release

[email protected]

e71118b

Compare

Choose a tag to compare

Bugfixes

  • providers: add optional chaining to avoid nullish reference errors (#4365) (59daa0e)
  • signin: set email sign-in input to “email” & “required”(#4352) (fd755bc)
  • more strict default callback url handling
  • Cleanup global __NEXTAUTH state after unmount (#4383)
  • update default callbacks.redirect

Other

  • adapters: Add next-autth as devDependencies for adapters (#4226) (6e28ccf)
  • bump versions
  • manually upgrade dep version
  • Update JWT docs to reflect JWE changes in v4 (#4313)

Related news

GHSA-q2mx-j4x2-2h74: URL Redirection to Untrusted Site ('Open Redirect') in next-auth

### Impact We found that this vulnerability is present when the developer is implementing an OAuth 1 provider (by extension, it means Twitter, which is the only built-in provider using OAuth 1), but **upgrading** is **still recommended**. `next-auth` v3 users before version 3.29.3 are impacted. (We recommend upgrading to v4, as v3 is considered unmaintained. See our [migration guide](https://next-auth.js.org/getting-started/upgrade-v4)) `next-auth` v4 users before version 4.3.3 are impacted. ### Patches We've released patches for this vulnerability in: - v3 - `3.29.3` - v4 - `4.3.3` You can do: ```sh npm i next-auth@latest ``` or ```sh yarn add next-auth@latest ``` or ```sh pnpm add next-auth@latest ``` (This will update to the latest v4 version, but you can change `latest` to `3` if you want to stay on v3.) ### Workarounds If you are not able to upgrade for any reason, you can add the following configuration to your `callbacks` option: ```ts // async redirect(url, b...

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907