Skip to main content

PHP Censor CVE-2026-141336

| EUVDEUVD-2026-140314 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-12-01 VulnCheck GHSA-rp8j-g54x-9wq4
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach internet-facing git webhook endpoint
  2. Delivery
    POST crafted committer XSS payload
  3. Exploit
    Payload stored unescaped as committer_email
  4. Execution
    Admin loads dashboard/build/status view
  5. Persist
    Script runs, exfiltrates session
  6. Impact
    Create 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PHP Censor 0 ≤2.1.8

Affected Packages

euvd php_censor no fix

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

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
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
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.7%
Top 46% exploitable
Prevalence
Low
niche self-hosted open-source PHP CI/CD tool, limited enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy