Vulnerabilities

5 via 5 paths

Dependencies

134

Source

GitHub

Commit

34b55147

Find, fix and prevent vulnerabilities in your code.

Severity
  • 2
  • 2
  • 1
Status
  • 5
  • 0
  • 0

high severity

Denial of Service (DoS)

  • Vulnerable module: apollo-server-core
  • Introduced through: apollo-server-express@1.4.0

Detailed paths

  • Introduced through: react-weather-api@rockchalkwushock/react-weather-api#34b551471baa2c16a49a9c19d80167a506eb2804 apollo-server-express@1.4.0 apollo-server-core@1.4.0
    Remediation: Upgrade to apollo-server-express@3.0.0.

Overview

apollo-server-core is a core module of the Apollo community GraphQL Server.

Affected versions of this package are vulnerable to Denial of Service (DoS) by accepting an unbounded amount of memory in the cache.

NOTE: The size of a cache can be limited with the cache: "bounded" option as of version 3.9.0.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade apollo-server-core to version 3.9.0 or higher.

References

high severity

Information Exposure

  • Vulnerable module: apollo-server-core
  • Introduced through: apollo-server-express@1.4.0

Detailed paths

  • Introduced through: react-weather-api@rockchalkwushock/react-weather-api#34b551471baa2c16a49a9c19d80167a506eb2804 apollo-server-express@1.4.0 apollo-server-core@1.4.0
    Remediation: Upgrade to apollo-server-express@2.1.0.

Overview

apollo-server-core is a core module of the Apollo community GraphQL Server.

Affected versions of this package are vulnerable to Information Exposure. It does not properly enforce validation rules when creating subscription servers, which includes a NoInstrospection rule for the Websocket. This leaks the GraphQL schema types, their relations and human-readable names.

Remediation

Upgrade apollo-server-core to version 2.14.2 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: node-fetch
  • Introduced through: isomorphic-fetch@2.2.1

Detailed paths

  • Introduced through: react-weather-api@rockchalkwushock/react-weather-api#34b551471baa2c16a49a9c19d80167a506eb2804 isomorphic-fetch@2.2.1 node-fetch@1.7.3
    Remediation: Upgrade to isomorphic-fetch@3.0.0.

Overview

node-fetch is a light-weight module that brings window.fetch to node.js

Affected versions of this package are vulnerable to Information Exposure when fetching a remote url with Cookie, if it get a Location response header, it will follow that url and try to fetch that url with provided cookie. This can lead to forwarding secure headers to 3th party.

Remediation

Upgrade node-fetch to version 2.6.7, 3.1.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: node-fetch
  • Introduced through: isomorphic-fetch@2.2.1

Detailed paths

  • Introduced through: react-weather-api@rockchalkwushock/react-weather-api#34b551471baa2c16a49a9c19d80167a506eb2804 isomorphic-fetch@2.2.1 node-fetch@1.7.3
    Remediation: Upgrade to isomorphic-fetch@3.0.0.

Overview

node-fetch is a light-weight module that brings window.fetch to node.js

Affected versions of this package are vulnerable to Denial of Service (DoS). Node Fetch did not honor the size option after following a redirect, which means that when a content size was over the limit, a FetchError would never get thrown and the process would end without failure.

Remediation

Upgrade node-fetch to version 2.6.1, 3.0.0-beta.9 or higher.

References

low severity

Information Exposure

  • Vulnerable module: apollo-server-core
  • Introduced through: apollo-server-express@1.4.0

Detailed paths

  • Introduced through: react-weather-api@rockchalkwushock/react-weather-api#34b551471baa2c16a49a9c19d80167a506eb2804 apollo-server-express@1.4.0 apollo-server-core@1.4.0
    Remediation: Upgrade to apollo-server-express@2.1.0.

Overview

apollo-server-core is a core module of the Apollo community GraphQL Server.

Affected versions of this package are vulnerable to Information Exposure when it can log sensitive information, such as Studio API keys, if they are passed incorrectly with leading/trailing whitespace or if they have any characters that are invalid as part of a header value.

Note Users are affected only if all the conditions are true:

  • Use either the schema reporting or usage reporting feature.

  • Use an Apollo Studio API key which has invalid header values.

  • Use the default fetcher (node-fetch) or configure their own node-fetch fetcher

Workaround

  1. Try retrieving a new API key from Studio. Note: This may not work if the invalid character is not part of the secret (it may be derived from identifiers like graph name, user name).

  2. Override the fetcher

  3. Disable schema reporting and/or usage reporting

Remediation

Upgrade apollo-server-core to version 2.26.1, 3.12.1 or higher.

References