CVE-2014-3840: Mayan edms Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-wpvx-26f7-65q3
CWE-79
Published
Advisory Summary

CVE-2014-3840 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Mayan edms libraries in the PyPI ecosystem. The issue involves mayan edms multiple cross-site scripting (xss) vulnerabilities. Remediation is available in the latest vendor maintenance releases.

CVE-2014-3840 at a Glance

CVE Identifier CVE-2014-3840
GHSA Identifier GHSA-wpvx-26f7-65q3
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Mayan edms
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2014-3840

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

mayan-edms fixed: Latest secure release
pip install mayan-edms>=Latest secure release
Verify Direct and Transitive Dependencies

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

pip show mayan-edms

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2014-3840, inspect your installed packages using pip:

pip show mayan-edms

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

Note: The pip show mayan-edms command checks currently installed packages in your active Python environment.

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 Mayan edms, 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

Multiple cross-site scripting (XSS) vulnerabilities in apps/common/templates/calculate_form_title.html in Mayan EDMS 0.13 allow remote authenticated users to inject arbitrary web script or HTML via a (1) tag or the (2) title of a source in a Staging folder, (3) Name field in a bootstrap setup, or Title field in a (4) smart link or (5) web form.

CVE-2014-3840 Affected Mayan edms Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
mayan-edms
PyPI

References

Frequently Asked Questions

What is CVE-2014-3840?
CVE-2014-3840 is a security vulnerability in Mayan edms involving Mayan EDMS multiple cross-site scripting (XSS) vulnerabilities under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Mayan edms versions are affected?
Affected versions include releases prior to current release patches across affected packages: mayan-edms.
What version fixes CVE-2014-3840?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is mayan-edms affected?
Yes, mayan-edms is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2014-3840?
CVE-2014-3840 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 PyPI dependencies for CVE-2014-3840?
Run the dependency tree command: 'pip show mayan-edms'. 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-wpvx-26f7-65q3",
  "modified" : "2024-11-22T20:21:10Z",
  "published" : "2022-05-17T04:41:54Z",
  "aliases" : [ "CVE-2014-3840" ],
  "summary" : "Mayan EDMS multiple cross-site scripting (XSS) vulnerabilities",
  "details" : "Multiple cross-site scripting (XSS) vulnerabilities in apps/common/templates/calculate_form_title.html in Mayan EDMS 0.13 allow remote authenticated users to inject arbitrary web script or HTML via a (1) tag or the (2) title of a source in a Staging folder, (3) Name field in a bootstrap setup, or Title field in a (4) smart link or (5) web form.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mayan-edms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3840"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mayan-edms/mayan-edms/issues/3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mayan-edms/mayan-edms/commit/398c480c10416d76e7c1dcb607e726e8fc988e72"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mayan-edms/Mayan-EDMS"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mayan-edms/PYSEC-2014-110.yaml"
  }, {
    "type" : "WEB",
    "url" : "http://research.openflare.org/advisories/OF-2014-09/mayan-edbs-storedxss.txt"
  }, {
    "type" : "WEB",
    "url" : "http://research.openflare.org/poc/maya-edms/maya-edms_multiple_xss.avi"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2014/q2/349"
  }, {
    "type" : "WEB",
    "url" : "http://seclists.org/oss-sec/2014/q2/352"
  }, {
    "type" : "WEB",
    "url" : "http://www.exploit-db.com/exploits/33493"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-22T20:21:10Z",
    "nvd_published_at" : "2014-05-27T13:55:00Z"
  }
}