CVE Explorer
CVE-2026-42841
Grav is a file-based Web platform. Prior to 2.0.0-beta.2, an authenticated user with page editing permissions can inject an executable JavaScript event-handler attribute into rendered image HTML through Grav's Markdown media action syntax. The issue is caused by Markdown image query parameters being converted into callable media actions. The public attribute() media method can be reached this way, allowing an editor to set an arbitrary HTML attribute name and value on the generated image element
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"grav","vendor":"getgrav","versions":[{"status":"affected","version":"< 2.0.0-beta.2"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:3df800de00d055d25dc49f36b756cee3fa84e4b742ec8004ad11351b8408fbd1 · sha256:b5ecfdf628f899e1… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.9,"baseSeverity":"MEDIUM","privilegesRequired":"HIGH","subAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","subIntegrityImpact":"LOW","userInteraction":"PASSIVE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:3df800de00d055d25dc49f36b756cee3fa84e4b742ec8004ad11351b8408fbd1 · sha256:b5ecfdf628f899e1… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:3df800de00d055d25dc49f36b756cee3fa84e4b742ec8004ad11351b8408fbd1 · sha256:b5ecfdf628f899e1… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663","tags":["x_refsource_MISC"],"url":"https://github.com/getgrav/grav/commit/5a12f9be8314682c8713e569e330f11805d0a663"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3df800de00d055d25dc49f36b756cee3fa84e4b742ec8004ad11351b8408fbd1 · sha256:b5ecfdf628f899e1… · /containers/cna/references/1
{"name":"https://github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhr","tags":["x_refsource_CONFIRM"],"url":"https://github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhr"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3df800de00d055d25dc49f36b756cee3fa84e4b742ec8004ad11351b8408fbd1 · sha256:b5ecfdf628f899e1… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/getgrav/grav/security/advisories/GHSA-r7fx-8g49-7hhr"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:3df800de00d055d25dc49f36b756cee3fa84e4b742ec8004ad11351b8408fbd1 · sha256:b5ecfdf628f899e1… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.