LiveActive security incident?Get immediate response
CVE Record

CVE-2018-1000874: PHP cebe markdown parser version 1.2.0 and earlier contains a Cross Site Scripting (XSS) vulnerability in a...

PHP cebe markdown parser version 1.2.0 and earlier contains a Cross Site Scripting (XSS) vulnerability in all distributed parsers allowing a malicious crafted script to be executed that can result in the lose of user data and sensitive user information. This attack can be exploited by crafting a three backtick wrapped payload with a character in front: L: "```<script>alert();</script>```". NOTE: This has been argued as a non-issue (see references) since it is not the parser's job to sanitize malicious code from a parsed document

MediumCVSS 6.1Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This CVE concerns possible cross-site scripting when applications render untrusted Markdown with PHP cebe/markdown 1.2.0 or earlier. If an application displays attacker-supplied Markdown in a browser without separate sanitization, a viewer could have data exposed or altered. The issue is disputed because Markdown parsers may not be responsible for sanitizing HTML.

Executive priority

Treat this as a moderate application-layer risk, not an emergency based on current evidence. Prioritize internet-facing or customer-facing Markdown features, especially admin review workflows. The main decision is whether the application relies on the parser for safety instead of enforcing sanitization itself.

Technical view

CVE-2018-1000874 is recorded as CWE-79 XSS affecting cebe/markdown 1.2.0 and earlier across distributed parsers. The reported condition involves crafted fenced Markdown causing script execution after rendering. CVSS 3.1 is 6.1 with network access, low complexity, no privileges, required user interaction, changed scope, and low confidentiality and integrity impact.

Likely exposure

Exposure is most likely in PHP applications that use cebe/markdown 1.2.0 or earlier to render user-controlled Markdown into web pages without an independent HTML sanitizer or escaping layer. The CVE source does not provide CPEs or a detailed affected product matrix.

Exploitation context

The source bundle does not show CISA KEV listing or active exploitation evidence. Exploitation would depend on an attacker getting crafted Markdown rendered and viewed in a vulnerable application context. The upstream discussion includes disagreement that this is a parser vulnerability rather than an application sanitization responsibility.

Researcher notes

Evidence is limited and partially disputed. The CVE describes script execution via crafted Markdown, while the referenced GitHub discussion argues sanitization is outside parser scope. Validate the actual application rendering chain before marking systems vulnerable or remediated.

Mitigation direction

  • Check cebe/markdown project guidance and issue discussion before assigning remediation.
  • Inventory applications using cebe/markdown 1.2.0 or earlier.
  • Do not render untrusted Markdown without a separate HTML sanitization layer.
  • Review whether application output escapes or strips unsafe HTML before browser display.
  • Prioritize remediation where Markdown is user-submitted and viewed by privileged users.

Validation and detection

  • Check dependency manifests for cebe/markdown and version 1.2.0 or earlier.
  • Identify routes that render Markdown supplied by users or external systems.
  • Confirm rendered Markdown passes through an allowlist HTML sanitizer before display.
  • Review tests for XSS regression coverage around Markdown rendering.
  • Verify findings in a safe staging environment using non-destructive test markers.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2018-1000874 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.1CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N2.82.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.1Medium
CVSS 3.1 vector shape for CVE-2018-1000874Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.