Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach internet-facing git webhook endpoint
-
DeliveryPOST crafted committer XSS payload
-
ExploitPayload stored unescaped as committer_email
-
ExecutionAdmin loads dashboard/build/status view
-
PersistScript runs, exfiltrates session
-
ImpactCreate rogue administrator account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Injection requires only unauthenticated network reach to POST /webhook/git/<projectId>, where projectId is a sequential integer (or project title) with no webhook secret or token needed; the endpoint is intended to be internet-reachable for Git servers. The stored payload EXECUTES only when a victim loads a view that renders committer_email unescaped - the build view, project page, dashboard, or ajax-builds/last-builds widgets (all require a logged-in user, typically an administrator), or the BuildStatus public status page which is reachable by anonymous visitors ONLY when the per-project allow_public_status option is enabled. Exploitation of session theft depends on the default condition that the PHPSESSID cookie is not HttpOnly and no Content-Security-Policy is set. Limiting factors: success is gated on a privileged user actually viewing an affected page (user interaction), so it is not instantaneous or automatable; the cookie-theft and account-creation chain specifically targets administrators. No special attacker authentication or non-default server configuration is required for the core admin-targeting path. |
| Impact | Signals diverge on impact and must be reconciled. The authoritative NVD/VulnCheck CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:L/VI:L/VA:N) yields 5.3 (medium) and rates confidentiality/integrity impact as Low, whereas the vendor GHSA advisory (GHSA-xm7w-c2w4-fg9q) scores it CVSS:3.1 8.1 (high) with C:H/I:H because the demonstrated chain achieves full administrator takeover - stealing the non-HttpOnly PHPSESSID and creating a new is_admin account in one unauthenticated request. This is a genuine conflict: the official 4.0 impact metrics understate the proven worst case. Mitigating signals temper urgency: SSVC lists Exploitation=poc (not active exploitation), Automatable=no, and Technical Impact=partial, and exploitation requires a logged-in administrator (or, for the public status path, any visitor) to load an affected view, so it is not a wormable drive-by. There is NO CISA KEV listing and NO EPSS score in the provided data, so widespread automated exploitation cannot be inferred. Attack prerequisites are low (network, unauthenticated, no secret needed - project is identified by a sequential integer id), and critically NO patch is yet available ('not yet patched'), which raises real-world priority above a typical medium-CVSS issue. The vuln.today Decision label is this_month, not act_now/emergency, consistent with a serious-but-not-emergency, POC-stage, interaction-dependent flaw. Net: a real priority for anyone running an internet-reachable PHP Censor webhook, driven more by unauthenticated reachability and absence of a fix than by the medium base score. |
| Exploit ScenarioDerived | An unauthenticated attacker who can reach a PHP Censor instance sends a single POST to /webhook/git/<projectId> (project id is a guessable sequential integer) with the committer parameter set to a JavaScript payload such as an <img onerror> tag, which is stored unescaped as committer_email. When an administrator later opens the dashboard, project, or build view, the script executes in their session, reads the non-HttpOnly PHPSESSID, and silently submits /user/add to create a new administrator account. A full, reproduced proof-of-concept with curl commands and attacker-hosted payload is published in the GHSA advisory; because AV:N/AC:L/PR:N the injection step is trivial, though execution is gated on a victim loading an affected page. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Stored cross-site scripting in PHP Censor (all versions through 2.1.8) lets a remote unauthenticated attacker POST a crafted 'committer' value to /webhook/git/<projectId> that is persisted as committer_email without validation and then printed unescaped in build, project, dashboard, last-builds and public status views (CWE-79). The script executes in the browser of any logged-in user - typically an administrator - who opens an affected page, and because the PHPSESSID cookie lacks HttpOnly and no Content-Security-Policy is set, the payload can read the session cookie or drive privileged actions such as creating a new administrator account. The CVSS 4.0 vector supplied scores 5.3 (AV:N/AC:L/AT:N/PR:N/UI:P) while the reporter's and our independently assessed CVSS 3.1 vector is 8.1 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N); the divergence reflects model and victim-interaction assumptions rather than a disagreement that impact is high once an administrator views a tainted page. SSVC records exploitation status as 'poc' with partial technical impact and the GHSA advisory contains fully reproducible proof-of-concept requests and an admin-takeover script; the issue is not in CISA KEV, and vuln.today prioritises it as this_month.
RemediationAI
No vendor-released patch identified at time of analysis - the advisory package metadata states 'fixed in: not yet patched' and the GHSA remains the tracking record at https://github.com/php-censor/php-censor/security/advisories/GHSA-xm7w-c2w4-fg9q. The advisory's suggested fix is to escape every sink that prints committer_email (Build/view.phtml, Project/ajax-builds.phtml, WidgetLastBuilds/update.phtml and BuildStatus/view.phtml) using the same Template::clean() helper already applied to commit_message or htmlspecialchars, and to validate or normalise the webhook 'committer' value on input; the trade-off is that this is a local code change that must be reapplied after each upstream upgrade until a release carries the fix. Because the webhook is meant to be reachable by Git servers and authenticates only on a sequential project id, restricting POST /webhook/git/ to the IP ranges of the systems that legitimately push builds removes the unauthenticated injection path at the cost of breaking webhook delivery from legitimate CI or SCM hosts outside that allowlist; disabling the per-project allow_public_status option removes the anonymous-visitor execution surface but does not stop the admin-targeting path. Setting HttpOnly on the PHPSESSID cookie and adding a restrictive Content-Security-Policy do not fix the injection but, per the advisory, limit the blast radius by blocking scripted cookie reads and inline payload execution - both can break existing integrations that rely on client-side session access or inline script. Until patched, treat any build whose committer_email contains markup as an injection attempt and review accounts and projects for unauthorised administrator creation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PHP Censor is a self-hosted continuous-integration server for PHP projects, distributed as the Composer package composer/php-censor/php-censor and identified in CPE data as cpe:2.3:a:php-censor:php_censor. The root cause is a missing output-encoding sink in an otherwise escaped template: WebhookController::git() reads the 'committer' request parameter (defaulting to an empty string) and passes it through createBuild() to BuildService::createBuild(), which calls setCommitterEmail() with no validation, normalisation or encoding. The build view (src/View/Build/view.phtml around line 122) prints it raw as <?= $build->getCommitterEmail(); ?>, while the adjacent commit_message field is passed through Template::clean() - a clean in-file control that isolates the escaping gap. The same unescaped pattern appears in src/View/Project/ajax-builds.phtml, src/View/WidgetLastBuilds/update.phtml and src/View/BuildStatus/view.phtml, the last being the public status page rendered to anonymous visitors when a project enables allow_public_status. Webhook requests reach the handler in WebhookController.php lines 336-370; the endpoint identifies a project only by its sequential integer id or title, so no secret, token or webhook signature needs to be known. The CWE-79 class matters here because the payload is stored server-side and only fires on page render, which is why exploitation depends on a privileged user loading a tainted view; session compromise additionally depends on the deployment defaults that PHPSESSID is not HttpOnly and that no CSP restricts inline script. The flaw was confirmed on release 2.1.7 and on master commit 43119be (2026-11-15) and is reported against PHP Censor 0 through 2.1.8.
Know when Php Censor gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Unauthenticated network injection (PR:N/AV:N/AC:L); payload executes only when an admin views a page (UI:R); demonstrated session theft and rogue admin creation justify C:H/I:H, A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
PHP Censor through 2.1.8 contains a stored cross-site scripting vulnerability that allows unauthenticated attackers to inject script via the committer parameter of the /webhook/git/<projectId> endpoint. Attackers can plant script stored as committer_email that executes in build views, dashboards, and public status pages to steal non-HttpOnly administrator session cookies.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-140314
GHSA-rp8j-g54x-9wq4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB