CVE-2026-27131: Putyourlightson/craft sprig Sprig Plugin For Craft CMS Vulnerability

MODERATE
Advisory Identifier: GHSA-m59h-42jf-cphr
CVSS 5.5
CWE-489 CWE-200
Published
Advisory Summary

CVE-2026-27131 is a MODERATE (CVSS 5.5) sprig plugin for craft cms vulnerability (CWE-489: Active Debug Code) affecting Putyourlightson/craft sprig libraries in the Packagist ecosystem. The issue involves sprig plugin for craft cms potentially discloses sensitive information via sprig playground. Remediation is available by upgrading affected packages to version 2.15.2, 3.7.2.

CVE-2026-27131 at a Glance

CVE Identifier CVE-2026-27131
GHSA Identifier GHSA-m59h-42jf-cphr
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-489: Active Debug Code
Affected Product Putyourlightson/craft sprig
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.5

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

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

How to Fix CVE-2026-27131

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

putyourlightson/craft-sprig fixed: 2.15.2
Upgrade putyourlightson/craft-sprig to 2.15.2
putyourlightson/craft-sprig fixed: 3.7.2
Upgrade putyourlightson/craft-sprig to 3.7.2
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 putyourlightson/craft-sprig

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-27131, inspect your project dependencies for Putyourlightson/craft sprig:

inspect dependencies for putyourlightson/craft-sprig

Analyze the terminal output to locate any version of Putyourlightson/craft sprig in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.15.2), 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-489: Active Debug Code, where the product is released with debugging code still enabled or active. In Putyourlightson/craft sprig, 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

Admin users, and users with explicit permission to access the Sprig Playground, could potentially expose the security key, credentials, and other sensitive configuration data, in addition to running the `hashData()` signing function. This issue was mitigated in versions 3.7.2 and 2.15.2 by disabling access to the Sprig Playground entirely when `devMode` is disabled, by default. It is possible to override this behaviour using a new `enablePlaygroundWhenDevModeDisabled` that defaults to `false`. References: - https://github.com/putyourlightson/craft-sprig/commit/db18c46f6dc5603828aa321a3a615adbd677d475 - https://github.com/putyourlightson/craft-sprig/commit/09c9da2ffb45a8857829f3390ae2578e26cfe03b

CVE-2026-27131 Affected Putyourlightson/craft sprig Versions

2 component(s)
Fixed Versions:
2.15.23.7.2
Product / Package Ecosystem Affected Versions Fixed Version
putyourlightson/craft-sprig
Packagist
≥ 2.0.0
< 2.15.2
2.15.2
putyourlightson/craft-sprig
Packagist
≥ 3.0.0
< 3.7.2
3.7.2

References

Frequently Asked Questions

What is CVE-2026-27131?
CVE-2026-27131 is a security vulnerability in Putyourlightson/craft sprig involving Sprig Plugin for Craft CMS potentially discloses sensitive information via Sprig Playground under CWE-489: Active Debug Code.
Which Putyourlightson/craft sprig versions are affected?
Affected versions include releases prior to 2.15.2, 3.7.2 across affected packages: putyourlightson/craft-sprig.
What version fixes CVE-2026-27131?
Upgrading to 2.15.2, 3.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is putyourlightson/craft-sprig affected?
Yes, putyourlightson/craft-sprig is affected in releases prior to 2.15.2, 3.7.2. Upgrade your dependency to 2.15.2, 3.7.2 or later.
What is the CVSS score of CVE-2026-27131?
CVE-2026-27131 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2026-27131?
CVE-2026-27131 is classified under CWE-489: Active Debug Code (The product is released with debugging code still enabled or active.).
How can I check Packagist dependencies for CVE-2026-27131?
Run the dependency tree command: 'inspect dependencies for putyourlightson/craft-sprig'. 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-m59h-42jf-cphr",
  "modified" : "2026-03-30T13:55:55Z",
  "published" : "2026-03-23T20:25:37Z",
  "aliases" : [ "CVE-2026-27131" ],
  "summary" : "Sprig Plugin for Craft CMS potentially discloses sensitive information via Sprig Playground",
  "details" : "Admin users, and users with explicit permission to access the Sprig Playground, could potentially expose the security key, credentials, and other sensitive configuration data, in addition to running the `hashData()` signing function.\n\nThis issue was mitigated in versions 3.7.2 and 2.15.2 by disabling access to the Sprig Playground entirely when `devMode` is disabled, by default. It is possible to override this behaviour using a new `enablePlaygroundWhenDevModeDisabled` that defaults to `false`.\n\nReferences:\n\n- https://github.com/putyourlightson/craft-sprig/commit/db18c46f6dc5603828aa321a3a615adbd677d475\n- https://github.com/putyourlightson/craft-sprig/commit/09c9da2ffb45a8857829f3390ae2578e26cfe03b",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "putyourlightson/craft-sprig"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.15.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "putyourlightson/craft-sprig"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/putyourlightson/craft-sprig/security/advisories/GHSA-m59h-42jf-cphr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27131"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/putyourlightson/craft-sprig/commit/09c9da2ffb45a8857829f3390ae2578e26cfe03b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/putyourlightson/craft-sprig/commit/db18c46f6dc5603828aa321a3a615adbd677d475"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/putyourlightson/craft-sprig"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-489" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-23T20:25:37Z",
    "nvd_published_at" : "2026-03-23T20:16:25Z"
  }
}