Cyber Resilience

CVE-2022-40879

MediumPublic PoC

Published: 29 September 2022

Published
29 September 2022
Modified
20 May 2025
KEV Added
Patch
CVSS Score v3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Score 0.0235 85.2th percentile
Risk Priority 14 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2022-40879 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Keking Kkfileview. Its CVSS base score is 6.1 (Medium).

Operationally, ranked in the top 14.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis

kkFileView version 4.1.0 contains a cross-site scripting vulnerability tracked as CVE-2022-40879 and assigned CWE-79. The flaw resides in handling of the errorMsg parameter and received a CVSS 3.1 score of 6.1 reflecting network attack vector, low complexity, no required privileges, required user interaction, and changed scope with limited impact on confidentiality and integrity.

An unauthenticated remote attacker can supply a crafted errorMsg value that is rendered in a victim’s browser when the parameter is processed. Successful exploitation allows the attacker to execute arbitrary script in the context of the affected application, potentially leading to limited data exposure or interface manipulation.

EPSS for the CVE rose from a low baseline to a peak of 0.1902 on 2025-12-11 before receding to the current value of 0.0235, indicating a period of increased exploitation interest after disclosure. Public references consist of GitHub issue reports that document the parameter injection but do not detail specific patches or mitigations.

EU & UK References

Vulnerability details

kkFileView v4.1.0 is vulnerable to Cross Site Scripting (XSS) via the parameter 'errorMsg.'

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

keking
kkfileview
4.1.0

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-79

Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.

addresses: CWE-79

Validates web inputs to reject script-related content that could produce XSS.

addresses: CWE-79

Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.

References