
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (GHSA-68jh-rf6x-836f) affects @apollo/server versions 4.7.1 and above, up to version 4.7.4, and involves an unsafe implementation of Content Security Policy (CSP) through the reuse of nonces. The issue was discovered and disclosed in June 2023, affecting Apollo Server's landing pages. Content Security Policies serve as a defense-in-depth strategy against XSS attacks, and while improper CSP implementation isn't inherently a vulnerability, it fails to provide adequate protection against potential XSS attacks (GitHub Advisory).
The vulnerability stems from the reuse of CSP nonces within landing pages. Instead of generating unique nonces for each request, Apollo Server was generating one nonce and reusing it for the lifetime of the instance. This implementation, while resolving script execution issues in Safari, did not follow secure CSP implementation practices. The issue was introduced in version 4.7.1 with the initial CSP implementation (GitHub Advisory).
While Apollo has not identified any direct XSS attack vectors via the Apollo Server landing pages, the improper CSP implementation means that if any XSS vulnerabilities exist or are discovered, the CSP would not provide the intended protection. Users of Apollo Server's landing pages could potentially be vulnerable if an XSS vector is present (GitHub Advisory).
The vulnerability is classified as Low severity. There are no known active exploits in the wild, and the issue itself doesn't create a direct security risk but rather weakens a defense-in-depth measure (GitHub Advisory).
The vulnerability has been patched in Apollo Server version 4.7.4. As a workaround, users can completely disable the landing page until they can upgrade to the patched version. The landing page can be disabled following the instructions in the Apollo Server documentation. Additionally, the precomputedNonce configuration option has been deprecated and should not be used (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."