Cross-site Scripting Affecting getgrav/grav package, versions >=0.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-GETGRAVGRAV-6241884
  • published12 Feb 2024
  • disclosed9 Feb 2024
  • creditUnknown

Introduced: 9 Feb 2024

CVE-2023-31506  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

There is no fixed version for getgrav/grav.

Overview

getgrav/grav is a Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS.

Affected versions of this package are vulnerable to Cross-site Scripting in the form fields. A remote and authenticated attacker, would manage to inject malicious JavaScript code, to be executed on the users or administrators of the application when accessing the article or another area of the application.

Note: To exploit this vulnerability, the attacker needs to be authenticated with a user with editor or publisher access.

PoC

<isindex x="javascript:" onmouseover="alert('m3n0sd0n4ld')">

References

CVSS Scores

version 3.1