Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46696?format=api",
    "vulnerability_id": "VCID-a8vd-tpju-6baj",
    "summary": "yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation\n### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nOriginal Report:\n\n> The Oauth1/2 \"state\" and OpenID Connect \"nonce\" is vulnerable for a \"timing attack\" since it's compared via regular string \n> comparison (instead of `Yii::$app->getSecurity()->compareString()`).\n\nAffected Code:\n\n1. OAuth 1 \"state\"\n\n  https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158\n\n3. OAuth 2 \"state\"\n  \n  https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121\n\n4. OpenID Connect \"nonce\"\n  \n  https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420\n\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nTBD: Replace strcmp with `Yii::$app->getSecurity()->compareString()`).\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nnot as far as I see.\n\n### References\n_Are there any links users can visit to find out more?_",
    "aliases": [
        {
            "alias": "CVE-2023-50708"
        },
        {
            "alias": "GHSA-w8vh-p74j-x9xp"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/68271?format=api",
            "purl": "pkg:composer/yiisoft/yii2-authclient@2.2.15",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-authclient@2.2.15"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/68270?format=api",
            "purl": "pkg:composer/yiisoft/yii2-authclient@2.2.14",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-a8vd-tpju-6baj"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2-authclient@2.2.14"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158"
        },
        {
            "reference_url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121"
        },
        {
            "reference_url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420"
        },
        {
            "reference_url": "https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-w8vh-p74j-x9xp",
            "reference_id": "GHSA-w8vh-p74j-x9xp",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-w8vh-p74j-x9xp"
        },
        {
            "reference_url": "https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp",
            "reference_id": "GHSA-w8vh-p74j-x9xp",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp"
        }
    ],
    "weaknesses": [
        {
            "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": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-a8vd-tpju-6baj"
}