{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-31386","id":"CVE-2021-31386","title":"Junos OS: When using J-Web with HTTP an attacker may retrieve encryption keys via Person-in-the-Middle attacks.","description":"A Protection Mechanism Failure vulnerability in the J-Web HTTP service of Juniper Networks Junos OS allows a remote unauthenticated attacker to perform Person-in-the-Middle (PitM) attacks against the device. This issue affects: Juniper Networks Junos OS 12.3 versions prior to 12.3R12-S20; 15.1 versions prior to 15.1R7-S11; 18.3 versions prior to 18.3R3-S6; 18.4 versions prior to 18.4R3-S10; 19.1 v","descriptionLong":"A Protection Mechanism Failure vulnerability in the J-Web HTTP service of Juniper Networks Junos OS allows a remote unauthenticated attacker to perform Person-in-the-Middle (PitM) attacks against the device. This issue affects: Juniper Networks Junos OS 12.3 versions prior to 12.3R12-S20; 15.1 versions prior to 15.1R7-S11; 18.3 versions prior to 18.3R3-S6; 18.4 versions prior to 18.4R3-S10; 19.1 versions prior to 19.1R3-S7; 19.2 versions prior to 19.2R3-S4; 19.3 versions prior to 19.3R3-S4; 19.4 versions prior to 19.4R3-S6; 20.1 versions prior to 20.1R3-S2; 20.2 versions prior to 20.2R3-S3; 20.3 versions prior to 20.3R3-S1; 20.4 versions prior to 20.4R3; 21.1 versions prior to 21.1R3; 21.2 versions prior to 21.2R2.","published":"2021-10-19T18:17:31.942Z","updated":"2026-06-17T03:51:42.193Z","reserved":"2021-04-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"juniper","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"juniper"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"juniper"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"juniper.net"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"2.0","score":2.6,"vector":"AV:N/AC:H/Au:N/C:P/I:N/A:N","rating":"low","source":"NVD"}],"rating":"medium","products":["Juniper Networks Junos OS"],"affectedProducts":[{"vendor":"Juniper Networks","product":"Junos OS","defaultStatus":null,"versions":[{"lessThan":"12.3R12-S20","status":"affected","version":"12.3","versionType":"custom"},{"lessThan":"15.1R7-S11","status":"affected","version":"15.1","versionType":"custom"},{"lessThan":"18.3R3-S6","status":"affected","version":"18.3","versionType":"custom"},{"lessThan":"18.4R3-S10","status":"affected","version":"18.4","versionType":"custom"},{"lessThan":"19.1R3-S7","status":"affected","version":"19.1","versionType":"custom"},{"lessThan":"19.2R3-S4","status":"affected","version":"19.2","versionType":"custom"},{"lessThan":"19.3R3-S4","status":"affected","version":"19.3","versionType":"custom"},{"lessThan":"19.4R3-S6","status":"affected","version":"19.4","versionType":"custom"},{"lessThan":"20.1R3-S2","status":"affected","version":"20.1","versionType":"custom"},{"lessThan":"20.2R3-S3","status":"affected","version":"20.2","versionType":"custom"},{"lessThan":"20.3R3-S1","status":"affected","version":"20.3","versionType":"custom"},{"lessThan":"20.4R3","status":"affected","version":"20.4","versionType":"custom"},{"lessThan":"21.1R3","status":"affected","version":"21.1","versionType":"custom"},{"lessThan":"21.2R2","status":"affected","version":"21.2","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-311","CWE-325","CWE-693","CWE-300"],"aliases":[],"references":[{"url":"https://kb.juniper.net/JSA11254","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00713,"epssPercentile":0.54382,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-31386","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31386","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-31386","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-31386","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["juniper"],"critical":[],"attention":null}