Is com.squareup.okhttp3:okhttp 3.12 vulnerable?

Maven · 14 releases from 3.12.0 to 3.12.13 · latest com.squareup.okhttp3:okhttp is 5.5.1 · checked 18 Nov 2026

Yes: 1 known advisory

Yes. com.squareup.okhttp3:okhttp 3.12.13, the last 3.12 release, is affected by 1 known security advisory (1 high), including CVE-2021-0341. Upgrade to 4.9.2 or later to fix all of them.

Upgrade with:mvn versions:use-dep-version -Dincludes=com.squareup.okhttp3:okhttp -DdepVersion=4.9.2 -DforceVersion=true

Is your project on an affected com.squareup.okhttp3:okhttp?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting com.squareup.okhttp3:okhttp 3.12.13

  • HighCVE-2021-0341GHSA-3cqm-mf7h-prrj24 May 2022

    Square OkHttp can accept the wrong certificate

    Affected
    <4.9.2
    Fixed in
    4.9.2

Every com.squareup.okhttp3:okhttp 3.12.x release

Affected: 3.12.0 to 3.12.13. Latest com.squareup.okhttp3:okhttp: 5.5.1.

VersionKnown advisories
com.squareup.okhttp3:okhttp 3.12.13CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.12CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.11CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.10CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.9CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.8CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.7CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.6CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.5CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.4CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.3CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.2CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.1CVE-2021-0341
com.squareup.okhttp3:okhttp 3.12.0CVE-2021-0341

Which of your client projects are still on com.squareup.okhttp3:okhttp 3.12?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact com.squareup.okhttp3:okhttp version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other com.squareup.okhttp3:okhttp versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Maven registry. Refreshed daily.