CVE-2021-30492 — zendesk_api_client_php
Fix: zendesk/zendesk_api_client_php#466CVE-2021-30492 is a security vulnerability in zendesk/zendesk_api_client_php. A fix is available for zendesk/zendesk_api_client_php — see the affected versions and patch details below.
Lack of Input Validation in zendesk_api_client_php for Zendesk Subdomain
Real-World Exposure
zendesk/zendesk_api_client_phpReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Impact
Lack of input validation of the Zendesk subdomain could expose users of the library to Server Side Request Forgery (SSRF).
Resolution
Validate the provided Zendesk subdomain to be a valid subdomain in:
- getAuthUrl
- getAccessToken
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | zendesk/zendesk_api_client_php | all versions | 2.2.11composer require zendesk/zendesk_api_client_php:^2.2.11 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for zendesk/zendesk_api_client_php, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update zendesk/zendesk_api_client_php to 2.2.11 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-30492 is resolved across your whole dependency graph.
Workarounds
Restrict outbound requests from the affected component to an allowlist of hosts, block access to link-local and internal address ranges at the network layer, and require authentication on internal services so a forged request cannot reach them unauthenticated.
Frequently Asked Questions
Is CVE-2021-30492 in your dependencies?
Find it across Packagist, including transitive dependencies.