GHSA-whrh-9j4q-g7ph: Polaris website CSRF Vulnerability Vulnerability

MODERATE
CVSS 6.8
CWE-352
Published
Advisory Summary

GHSA-whrh-9j4q-g7ph is a MODERATE (CVSS 6.8) csrf vulnerability vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Polaris website libraries in the npm ecosystem. The issue involves csrf vulnerability in polaris-website. Remediation is available by upgrading affected packages to version 1.1.1.

GHSA-whrh-9j4q-g7ph at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-whrh-9j4q-g7ph
Severity MODERATE
CVSS v3.1 Base Score 6.8
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Polaris website
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-whrh-9j4q-g7ph

To remediate this vulnerability, upgrade all affected Polaris website dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

polaris-website fixed: 1.1.1
npm install polaris-website@1.1.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls polaris-website

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-whrh-9j4q-g7ph, inspect your project dependencies using npm:

npm ls polaris-website

Analyze the terminal output to locate any version of Polaris website in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), your application is affected.

Note: The npm ls polaris-website command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Polaris website, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact CSRF vulnerability: In some very specific circumstances, an attacker would be able to update your settings. Basically you would need to navigate to hackersite.com while logged into our panel. Then they could modify your settings. They couldn't check if it worked, nor could they read your settings. ### Patches As of v1.1.1 this has been patched by implementing the Double submit pattern using a cookie. ### For more information If you have any questions or comments about this advisory: * Open an issue in [Polaris-React](https://github.com/polaris-rbx/polaris-react) * Email us at [hi@nezto.re](mailto:hi@nezto.re) * Join our discord (preferred): https://discord.gg/QevWabU

GHSA-whrh-9j4q-g7ph Affected Polaris website Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
polaris-website
npm
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is GHSA-whrh-9j4q-g7ph?
GHSA-whrh-9j4q-g7ph is a security vulnerability in Polaris website involving CSRF Vulnerability in polaris-website under CWE-352: Cross-Site Request Forgery (CSRF).
Which Polaris website versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: polaris-website.
What version fixes GHSA-whrh-9j4q-g7ph?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is polaris-website affected?
Yes, polaris-website is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What is the CVSS score of GHSA-whrh-9j4q-g7ph?
GHSA-whrh-9j4q-g7ph has a CVSS v3.1 base score of 6.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with GHSA-whrh-9j4q-g7ph?
GHSA-whrh-9j4q-g7ph is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check npm dependencies for GHSA-whrh-9j4q-g7ph?
Run the dependency tree command: 'npm ls polaris-website'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-whrh-9j4q-g7ph",
  "modified" : "2021-09-23T18:38:11Z",
  "published" : "2020-08-05T21:43:19Z",
  "aliases" : [ ],
  "summary" : "CSRF Vulnerability in polaris-website",
  "details" : "### Impact\nCSRF vulnerability:\nIn some very specific circumstances, an attacker would be able to update your settings.\nBasically you would need to navigate to hackersite.com while logged into our panel. Then they could modify your settings. They couldn't check if it worked, nor could they read your settings.\n\n### Patches\nAs of v1.1.1 this has been patched by implementing the Double submit pattern using a cookie.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Polaris-React](https://github.com/polaris-rbx/polaris-react)\n* Email us at [hi@nezto.re](mailto:hi@nezto.re)\n* Join our discord (preferred): https://discord.gg/QevWabU",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "polaris-website"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/polaris-rbx/Polaris-React/security/advisories/GHSA-whrh-9j4q-g7ph"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/polaris-rbx/Polaris-React/commit/b64673d91e83c0737616a0770d8208727730808b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/polaris-rbx/Polaris-React"
  }, {
    "type" : "WEB",
    "url" : "https://medium.com/cross-site-request-forgery-csrf/double-submit-cookie-pattern-65bb71d80d9f"
  }, {
    "type" : "WEB",
    "url" : "https://owasp.org/www-community/attacks/csrf"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-POLARISWEBSITE-597473"
  }, {
    "type" : "WEB",
    "url" : "https://www.barracuda.com/glossary/csrf"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-05T21:42:25Z",
    "nvd_published_at" : null
  }
}