mal-2026-2419
Vulnerability from ossf_malicious_packages
Published
2026-04-02 09:56
Modified
2026-04-07 14:41
Summary
Malicious code in express-session-js (npm)
Details

Package impersonates legitimate express-session package; initPlugin() downloads and executes attacker-controlled remote code on startup via new Function.constructor()


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (853f35820c1bfb3bd8be7548debc48dbf86de52a43e91d7b586a9b1ce86a54c7)

The package express-session-js was found to contain malicious code.

Credits
Amazon Inspector actran@amazon.com
SafeDep safedep.io

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "express-session-js"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    },
    {
      "contact": [
        "https://safedep.io"
      ],
      "name": "SafeDep",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "import_time": "2026-04-07T14:39:24.981649905Z",
        "modified_time": "2026-04-07T14:24:50Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "853f35820c1bfb3bd8be7548debc48dbf86de52a43e91d7b586a9b1ce86a54c7",
        "source": "amazon-inspector"
      }
    ]
  },
  "details": "Package impersonates legitimate express-session package; initPlugin() downloads and executes attacker-controlled remote code on startup via new Function.constructor()\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (853f35820c1bfb3bd8be7548debc48dbf86de52a43e91d7b586a9b1ce86a54c7)\nThe package express-session-js was found to contain malicious code.\n",
  "id": "MAL-2026-2419",
  "modified": "2026-04-07T14:41:21Z",
  "published": "2026-04-02T09:56:44Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://safedep.io/malicious-npm-package-express-session-js/"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in express-session-js (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…