mongo-express@0.42.0 vulnerabilities

Web-based admin interface for MongoDB

  • latest version

    1.1.0-rc-2

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    28 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mongo-express package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-Site Request Forgery (CSRF)

    mongo-express is a web-based MongoDB admin interface written with Node.js, Express and Bootstrap3

    Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) due to insufficient protection on the /admin endpoint. An attacker can perform unauthorized actions on behalf of a logged-in user by tricking them into clicking a malicious link or visiting a crafted webpage.

    How to fix Cross-Site Request Forgery (CSRF)?

    Upgrade mongo-express to version 1.1.0-rc-1 or higher.

    <1.1.0-rc-1
    • H
    Cross-site Scripting (XSS)

    mongo-express is a web-based MongoDB admin interface written with Node.js, Express and Bootstrap3

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS). Two XSS vectors were discovered.

    The first arises as when the content of a cell grows larger than supported size, clicking on a row will show the full document unsanitized. However, this needs admin interaction on the cell.

    The second arises due to data cells identified as media will be rendered without being sanitized.

    How to fix Cross-site Scripting (XSS)?

    Upgrade mongo-express to version 1.0.0-alpha.4 or higher.

    <1.0.0-alpha.4
    • M
    Denial of Service (DoS)

    mongo-express is a web-based MongoDB admin interface written with Node.js, Express and Bootstrap3

    Affected versions of this package are vulnerable to Denial of Service (DoS) when exporting an empty collection as CSV, due to an unhandled exception, leading to a crash.

    How to fix Denial of Service (DoS)?

    Upgrade mongo-express to version 1.0.1 or higher.

    <1.0.1
    • C
    Cross-site Scripting (XSS)

    mongo-express is a web-based MongoDB admin interface written with Node.js, Express and Bootstrap3

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in lib/filters.js and lib/scripts/collection.js.

    How to fix Cross-site Scripting (XSS)?

    Upgrade mongo-express to version 1.0.0-alpha.2 or higher.

    <1.0.0-alpha.2
    • C
    Remote Code Execution (RCE)

    mongo-express is a web-based MongoDB admin interface written with Node.js, Express and Bootstrap3

    Affected versions of this package are vulnerable to Remote Code Execution (RCE) via endpoints that use the toBSON method. A misuse of the vm dependency to perform exec commands in a non-safe environment.

    How to fix Remote Code Execution (RCE)?

    Upgrade mongo-express to version 0.54.0 or higher.

    <0.54.0