Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/278778?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/278778?format=api",
    "vulnerability_id": "VCID-k87r-mnjz-tkc9",
    "summary": "Matrix iOS SDK allows developers to build iOS apps compatible with Matrix. Prior to version 0.23.19, an attacker cooperating with a malicious homeserver can construct messages appearing to have come from another person. Such messages will be marked with a grey shield on some platforms, but this may be missing in others. This attack is possible due to the matrix-ios-sdk implementing a too permissive key forwarding strategy. The default policy for accepting key forwards has been made more strict in the matrix-ios-sdk version 0.23.19. matrix-ios-sdk will now only accept forwarded keys in response to previously issued requests and only from own, verified devices. The SDK now sets a `trusted` flag on the decrypted message upon decryption, based on whether the key used to decrypt the message was received from a trusted source. Clients need to ensure that messages decrypted with a key with `trusted = false` are decorated appropriately (for example, by showing a warning for such messages). This attack requires coordination between a malicious home server and an attacker, so those who trust their home servers do not need a workaround.",
    "aliases": [
        {
            "alias": "CVE-2022-39257"
        },
        {
            "alias": "GHSA-qxr3-5jmq-xcf4"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/261034?format=api",
            "purl": "pkg:maven/org.matrix.android/matrix-android-sdk2@1.2.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-dvrk-p9dt-y7h6"
                },
                {
                    "vulnerability": "VCID-mwm6-1d7e-mfev"
                },
                {
                    "vulnerability": "VCID-vx5q-mbn5-8kcf"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.matrix.android/matrix-android-sdk2@1.2.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/261033?format=api",
            "purl": "pkg:maven/org.matrix.android/matrix-android-sdk2@0.0.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-dvrk-p9dt-y7h6"
                },
                {
                    "vulnerability": "VCID-k87r-mnjz-tkc9"
                },
                {
                    "vulnerability": "VCID-mwm6-1d7e-mfev"
                },
                {
                    "vulnerability": "VCID-r2zf-yxr7-gke9"
                },
                {
                    "vulnerability": "VCID-vx5q-mbn5-8kcf"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.matrix.android/matrix-android-sdk2@0.0.2"
        }
    ],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-39257",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48076",
                    "published_at": "2026-05-09T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48101",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.4818",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48175",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.4813",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.4811",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48121",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48066",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.47987",
                    "published_at": "2026-05-05T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48053",
                    "published_at": "2026-05-07T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48122",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48072",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48125",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.4812",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48143",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48116",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.00249",
                    "scoring_system": "epss",
                    "scoring_elements": "0.48127",
                    "published_at": "2026-04-13T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-39257"
        },
        {
            "reference_url": "https://matrix.org/blog/2022/09/28/upgrade-now-to-address-encryption-vulns-in-matrix-sdks-and-clients",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-23T15:50:39Z/"
                }
            ],
            "url": "https://matrix.org/blog/2022/09/28/upgrade-now-to-address-encryption-vulns-in-matrix-sdks-and-clients"
        },
        {
            "reference_url": "https://github.com/matrix-org/matrix-ios-sdk/commit/5ca86c328a5faaab429c240551cb9ca8f0f6262c",
            "reference_id": "5ca86c328a5faaab429c240551cb9ca8f0f6262c",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-23T15:50:39Z/"
                }
            ],
            "url": "https://github.com/matrix-org/matrix-ios-sdk/commit/5ca86c328a5faaab429c240551cb9ca8f0f6262c"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-39257",
            "reference_id": "CVE-2022-39257",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-39257"
        },
        {
            "reference_url": "https://github.com/matrix-org/matrix-ios-sdk/security/advisories/GHSA-qxr3-5jmq-xcf4",
            "reference_id": "GHSA-qxr3-5jmq-xcf4",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-23T15:50:39Z/"
                }
            ],
            "url": "https://github.com/matrix-org/matrix-ios-sdk/security/advisories/GHSA-qxr3-5jmq-xcf4"
        },
        {
            "reference_url": "https://github.com/matrix-org/matrix-ios-sdk/releases/tag/v0.23.19",
            "reference_id": "v0.23.19",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2025-04-23T15:50:39Z/"
                }
            ],
            "url": "https://github.com/matrix-org/matrix-ios-sdk/releases/tag/v0.23.19"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 287,
            "name": "Improper Authentication",
            "description": "When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct."
        },
        {
            "cwe_id": 322,
            "name": "Key Exchange without Entity Authentication",
            "description": "The product performs a key exchange with an actor without verifying the identity of that actor."
        },
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        }
    ],
    "exploits": [],
    "severity_range_score": "7.5 - 7.5",
    "exploitability": "0.5",
    "weighted_severity": "6.8",
    "risk_score": 3.4,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-k87r-mnjz-tkc9"
}