VYPR
Unrated severityNVD Advisory· Published Mar 11, 2019· Updated Aug 4, 2024

CVE-2019-9650

CVE-2019-9650

Description

An XSS issue was discovered in upcoming_events.php in the Upcoming Events plugin before 1.33 for MyBB via a crafted name for an event.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

2

Patches

Vulnerability mechanics

Root cause

"Missing HTML escaping on event names and usernames before rendering in template output allows stored cross-site scripting."

Attack vector

An attacker with the ability to create or edit events (typically a forum user who can post calendar events) can craft a malicious event name containing JavaScript payloads, such as `<script>alert(1)</script>` [ref_id=1]. When the Upcoming Events plugin renders the event list on the index or portal page, the unsanitized name is injected directly into the page HTML, causing the script to execute in the context of any user who views the affected page. No authentication beyond standard event-creation privileges is required.

Affected code

The vulnerability is in `upcoming_events.php` within the Upcoming Events plugin for MyBB. The `get_upcoming_events()` function retrieves event names from the database and passes them unsanitized into template variables such as `$event['link']`, which are then rendered via `$lang->sprintf()` calls like `$lang->upcoming_events_eventline` and `$lang->upcoming_events_created` [ref_id=1]. No escaping or HTML sanitization is applied to the event name before it is output.

What the fix does

The patch sanitizes event names and usernames by wrapping them with `htmlspecialchars()` before they are used in output [ref_id=1]. This converts HTML special characters like `<` and `>` into their safe entity equivalents, preventing any injected script tags from being interpreted by the browser. The fix is applied to the data retrieved in `get_upcoming_events()` so that all downstream template rendering receives escaped strings.

Preconditions

  • configThe Upcoming Events plugin must be installed and active on a MyBB forum.
  • authThe attacker must have the ability to create or edit calendar events (standard event-posting privileges).
  • configThe plugin's index or portal display setting must be enabled to render the event list.

Reproduction

1. Log in to the MyBB forum as a user who can create calendar events. 2. Create a new event with a name containing a JavaScript payload, e.g. `<script>alert(document.cookie)</script>`. 3. Navigate to the forum index or portal page where the Upcoming Events plugin displays events. 4. Observe that the injected script executes in the browser, confirming stored XSS [ref_id=1].

Generated on Jun 1, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.