CVE-2020-4061: October/backend Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-3pc2-fm7p-q2vg
CVSS 3.7
CWE-79
Published
Advisory Summary

CVE-2020-4061 is a LOW (CVSS 3.7) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting October/backend libraries in the Packagist ecosystem. The issue involves cross-site scripting in october. Remediation is available by upgrading affected packages to version 1.0.467.

CVE-2020-4061 at a Glance

CVE Identifier CVE-2020-4061
GHSA Identifier GHSA-3pc2-fm7p-q2vg
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product October/backend
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 3.7

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

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

How to Fix CVE-2020-4061

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

october/backend fixed: 1.0.467
Upgrade october/backend to 1.0.467
Verify Direct and Transitive Dependencies

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

inspect dependencies for october/backend

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-4061, inspect your project dependencies for October/backend:

inspect dependencies for october/backend

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

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In October/backend, 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 Pasting content copied from malicious websites into the Froala richeditor could result in a successful self-XSS attack. ### Patches Issue has been patched in Build 467 (v1.0.467). ### Workarounds Apply https://github.com/octobercms/october/commit/b384954a29b89117e1c0d6035b3ede4f46df67c5 to your installation manually if unable to upgrade to Build 467. ### References - https://research.securitum.com/the-curious-case-of-copy-paste/ ### For more information If you have any questions or comments about this advisory: * Email us at [hello@octobercms.com](mailto:hello@octobercms.com) ### Threat Assessment Assessed as Low given that by the nature of the attack it can only impact users that do it to themselves by copying and pasting from malicious websites. ### Acknowledgements Thanks to [Michał Bentkowski of Securitum](https://research.securitum.com/authors/michal-bentkowski/) for finding the original issue in Froala and @tomaszstrojny for reporting the issue to the October CMS team.

CVE-2020-4061 Affected October/backend Versions

1 component(s)
Fixed Versions:
1.0.467
Product / Package Ecosystem Affected Versions Fixed Version
october/backend
Packagist
≥ 1.0.319
< 1.0.467
1.0.467

References

Frequently Asked Questions

What is CVE-2020-4061?
CVE-2020-4061 is a security vulnerability in October/backend involving Cross-site Scripting in October under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which October/backend versions are affected?
Affected versions include releases prior to 1.0.467 across affected packages: october/backend.
What version fixes CVE-2020-4061?
Upgrading to 1.0.467 (or the latest patched release for your respective branch) resolves the vulnerability.
Is october/backend affected?
Yes, october/backend is affected in releases prior to 1.0.467. Upgrade your dependency to 1.0.467 or later.
What is the CVSS score of CVE-2020-4061?
CVE-2020-4061 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2020-4061?
CVE-2020-4061 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2020-4061?
Run the dependency tree command: 'inspect dependencies for october/backend'. 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-3pc2-fm7p-q2vg",
  "modified" : "2021-03-04T18:26:09Z",
  "published" : "2020-07-02T16:55:11Z",
  "aliases" : [ "CVE-2020-4061" ],
  "summary" : "Cross-site Scripting in October",
  "details" : "### Impact\nPasting content copied from malicious websites into the Froala richeditor could result in a successful self-XSS attack.\n\n### Patches\nIssue has been patched in Build 467 (v1.0.467).\n\n### Workarounds\nApply https://github.com/octobercms/october/commit/b384954a29b89117e1c0d6035b3ede4f46df67c5 to your installation manually if unable to upgrade to Build 467.\n\n### References\n- https://research.securitum.com/the-curious-case-of-copy-paste/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [hello@octobercms.com](mailto:hello@octobercms.com)\n\n### Threat Assessment\nAssessed as Low given that by the nature of the attack it can only impact users that do it to themselves by copying and pasting from malicious websites.\n\n### Acknowledgements\n\nThanks to [Michał Bentkowski of Securitum](https://research.securitum.com/authors/michal-bentkowski/) for finding the original issue in Froala and @tomaszstrojny for reporting the issue to the October CMS team.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "october/backend"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.319"
      }, {
        "fixed" : "1.0.467"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/october/security/advisories/GHSA-3pc2-fm7p-q2vg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-4061"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/octobercms/october/commit/b384954a29b89117e1c0d6035b3ede4f46df67c5"
  }, {
    "type" : "WEB",
    "url" : "https://research.securitum.com/the-curious-case-of-copy-paste"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-07-02T16:54:50Z",
    "nvd_published_at" : null
  }
}