Is com.squareup.okhttp3:okhttp 4.9 vulnerable?

Maven · 4 releases from 4.9.0 to 4.9.3 · latest com.squareup.okhttp3:okhttp is 5.5.1 · checked 18 Nov 2026

No known advisories in the last release

com.squareup.okhttp3:okhttp 4.9.3, the last 4.9 release, has no known advisories. 1 advisory affects earlier 4.9.x releases, so update to 4.9.3.

Update within 4.9:mvn versions:use-dep-version -Dincludes=com.squareup.okhttp3:okhttp -DdepVersion=4.9.3 -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

Fixed within 4.9.x, affecting earlier releases

  • 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 4.9.x release

Affected: 4.9.0 to 4.9.1. 4.9.2 and later are not affected. Latest com.squareup.okhttp3:okhttp: 5.5.1.

VersionKnown advisories
com.squareup.okhttp3:okhttp 4.9.3None
com.squareup.okhttp3:okhttp 4.9.2None
com.squareup.okhttp3:okhttp 4.9.1CVE-2021-0341
com.squareup.okhttp3:okhttp 4.9.0CVE-2021-0341

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

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.