CVE-2025-50180: CWE-918: Server-Side Request Forgery (SSRF) in esm-dev esm.sh
esm.sh is a no-build content delivery network (CDN) for web development. In version 136, esm.sh is vulnerable to a full-response SSRF, allowing an attacker to retrieve information from internal websites through the vulnerability. Version 137 fixes the vulnerability.
AI Analysis
Technical Summary
CVE-2025-50180 is a Server-Side Request Forgery (SSRF) vulnerability classified under CWE-918, discovered in esm.sh version 136, a no-build content delivery network widely used in web development to serve JavaScript and other resources without requiring local builds. SSRF vulnerabilities occur when an attacker can manipulate a server to send crafted HTTP requests to arbitrary destinations, often internal or protected network resources, bypassing network access controls. In this case, esm.sh version 136 allows attackers to send requests through its infrastructure and retrieve full HTTP responses from internal websites or services that are not normally accessible externally. This can lead to unauthorized information disclosure, including sensitive internal data or metadata from cloud services. The vulnerability requires no authentication or user interaction, making it remotely exploitable by any attacker with network access to the esm.sh service. The flaw was addressed in version 137 by implementing proper request validation and restricting outbound request destinations. The CVSS 4.0 score of 8.7 (high severity) reflects the vulnerability's ease of exploitation (network attack vector, no privileges or user interaction required) and its significant impact on confidentiality and integrity of internal resources. While no public exploits have been reported yet, the potential for reconnaissance and lateral movement in compromised environments is substantial. Organizations relying on esm.sh version 136 should prioritize upgrading to version 137 and review network segmentation policies to limit exposure to SSRF attacks.
Potential Impact
The primary impact of CVE-2025-50180 is unauthorized disclosure of sensitive internal information due to SSRF exploitation. Attackers can leverage this vulnerability to access internal web applications, metadata services, or other protected endpoints that are normally inaccessible from the internet. This can facilitate further attacks such as credential theft, lateral movement within networks, or data exfiltration. The vulnerability compromises confidentiality and potentially integrity if attackers use retrieved information to manipulate internal systems. Since esm.sh is a CDN service used globally by web developers, the scope of affected systems is broad, potentially impacting numerous organizations that integrate esm.sh into their development or production environments. The ease of exploitation without authentication or user interaction increases the risk of automated scanning and exploitation attempts. Although availability impact is minimal, the breach of internal resources can have cascading effects on organizational security posture, compliance, and trust. The lack of known exploits in the wild currently reduces immediate risk but does not diminish the urgency to patch given the vulnerability's high severity and potential for abuse.
Mitigation Recommendations
1. Upgrade esm.sh to version 137 or later immediately to apply the official fix that prevents SSRF exploitation. 2. Implement strict egress filtering and network segmentation to restrict outbound HTTP requests from CDN or proxy services to only trusted destinations, minimizing the attack surface for SSRF. 3. Employ Web Application Firewalls (WAFs) with rules designed to detect and block SSRF patterns, including unusual outbound request destinations or request headers. 4. Monitor network traffic logs for anomalous outbound requests originating from esm.sh or related services, focusing on internal IP ranges and metadata service endpoints. 5. Conduct regular security assessments and penetration tests targeting SSRF vulnerabilities in third-party services integrated into development workflows. 6. Educate development and security teams about SSRF risks and ensure that third-party dependencies like esm.sh are kept up to date. 7. Where possible, avoid reliance on external CDNs for internal resource access or sensitive environments, or use private CDNs with strict access controls. 8. Review and harden internal web services to require strong authentication and authorization, limiting the impact if SSRF occurs.
Affected Countries
United States, China, India, Germany, United Kingdom, Japan, South Korea, France, Canada, Australia
CVE-2025-50180: CWE-918: Server-Side Request Forgery (SSRF) in esm-dev esm.sh
Description
esm.sh is a no-build content delivery network (CDN) for web development. In version 136, esm.sh is vulnerable to a full-response SSRF, allowing an attacker to retrieve information from internal websites through the vulnerability. Version 137 fixes the vulnerability.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-50180 is a Server-Side Request Forgery (SSRF) vulnerability classified under CWE-918, discovered in esm.sh version 136, a no-build content delivery network widely used in web development to serve JavaScript and other resources without requiring local builds. SSRF vulnerabilities occur when an attacker can manipulate a server to send crafted HTTP requests to arbitrary destinations, often internal or protected network resources, bypassing network access controls. In this case, esm.sh version 136 allows attackers to send requests through its infrastructure and retrieve full HTTP responses from internal websites or services that are not normally accessible externally. This can lead to unauthorized information disclosure, including sensitive internal data or metadata from cloud services. The vulnerability requires no authentication or user interaction, making it remotely exploitable by any attacker with network access to the esm.sh service. The flaw was addressed in version 137 by implementing proper request validation and restricting outbound request destinations. The CVSS 4.0 score of 8.7 (high severity) reflects the vulnerability's ease of exploitation (network attack vector, no privileges or user interaction required) and its significant impact on confidentiality and integrity of internal resources. While no public exploits have been reported yet, the potential for reconnaissance and lateral movement in compromised environments is substantial. Organizations relying on esm.sh version 136 should prioritize upgrading to version 137 and review network segmentation policies to limit exposure to SSRF attacks.
Potential Impact
The primary impact of CVE-2025-50180 is unauthorized disclosure of sensitive internal information due to SSRF exploitation. Attackers can leverage this vulnerability to access internal web applications, metadata services, or other protected endpoints that are normally inaccessible from the internet. This can facilitate further attacks such as credential theft, lateral movement within networks, or data exfiltration. The vulnerability compromises confidentiality and potentially integrity if attackers use retrieved information to manipulate internal systems. Since esm.sh is a CDN service used globally by web developers, the scope of affected systems is broad, potentially impacting numerous organizations that integrate esm.sh into their development or production environments. The ease of exploitation without authentication or user interaction increases the risk of automated scanning and exploitation attempts. Although availability impact is minimal, the breach of internal resources can have cascading effects on organizational security posture, compliance, and trust. The lack of known exploits in the wild currently reduces immediate risk but does not diminish the urgency to patch given the vulnerability's high severity and potential for abuse.
Mitigation Recommendations
1. Upgrade esm.sh to version 137 or later immediately to apply the official fix that prevents SSRF exploitation. 2. Implement strict egress filtering and network segmentation to restrict outbound HTTP requests from CDN or proxy services to only trusted destinations, minimizing the attack surface for SSRF. 3. Employ Web Application Firewalls (WAFs) with rules designed to detect and block SSRF patterns, including unusual outbound request destinations or request headers. 4. Monitor network traffic logs for anomalous outbound requests originating from esm.sh or related services, focusing on internal IP ranges and metadata service endpoints. 5. Conduct regular security assessments and penetration tests targeting SSRF vulnerabilities in third-party services integrated into development workflows. 6. Educate development and security teams about SSRF risks and ensure that third-party dependencies like esm.sh are kept up to date. 7. Where possible, avoid reliance on external CDNs for internal resource access or sensitive environments, or use private CDNs with strict access controls. 8. Review and harden internal web services to require strong authentication and authorization, limiting the impact if SSRF occurs.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-06-13T19:17:51.726Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 699f6e70b7ef31ef0b5a0a15
Added to database: 2/25/2026, 9:49:36 PM
Last enriched: 3/5/2026, 9:51:11 AM
Last updated: 4/11/2026, 6:06:04 PM
Views: 119
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.