Language: TypeScript
Label: vulnerable
CWE: CWE-918 \u2014 Server-Side Request Forgery (SSRF)
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

Code:
        ...(isTestEnv()
            ? {
                  'test-utils/write-to-file': writeToFile,
              }
            : {}),
        '@google-cloud/bigquery': bigquery,
        '@google-cloud/pubsub': pubsub,
        '@google-cloud/storage': gcs,
        '@posthog/plugin-contrib': contrib,
        '@posthog/plugin-scaffold': scaffold,
        'aws-sdk': AWS,
        ethers: ethers,
        'generic-pool': genericPool,
        'node-fetch':
            isCloud() && (!hub.fetchHostnameGuardTeams || hub.fetchHostnameGuardTeams.has(teamId))
                ? safeTrackedFetch
                : trackedFetch,
        'snowflake-sdk': snowflake,
        crypto: crypto,
        jsonwebtoken: jsonwebtoken,
        faker: faker,
        pg: pg,
        stream: { PassThrough },
        url: url,
        zlib: zlib,
    }