#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(281845);
script_version("1.1");
script_set_attribute(attribute:"plugin_modification_date", value:"2026/01/06");
script_cve_id("CVE-2022-46175");
script_xref(name:"IAVA", value:"2025-A-0870");
script_name(english:"Atlassian Confluence < 8.5.17 / 8.6.x < 9.2.1 / 9.3.x < 9.4.0 / 9.5.x < 9.5.1 / 10.0.x < 10.0.2 / 10.1.0 XSS (CONFSERVER-101487)");
script_set_attribute(attribute:"synopsis", value:
"The remote Atlassian Confluence host is missing a security update.");
script_set_attribute(attribute:"description", value:
"The version of Atlassian Confluence Server running on the remote host is affected by a vulnerability as referenced in
the CONFSERVER-101487 advisory.
- JSON5 is an extension to the popular JSON file format that aims to be easier to write and maintain by hand
(e.g. for config files). The `parse` method of the JSON5 library before and including versions 1.0.1 and
2.2.1 does not restrict parsing of keys named `__proto__`, allowing specially crafted strings to pollute
the prototype of the resulting object. This vulnerability pollutes the prototype of the object returned by
`JSON5.parse` and not the global Object prototype, which is the commonly understood definition of
Prototype Pollution. However, polluting the prototype of a single object can have significant security
impact for an application if the object is later used in trusted operations. This vulnerability could
allow an attacker to set arbitrary and unexpected keys on the object returned from `JSON5.parse`. The
actual impact will depend on how applications utilize the returned object and how they filter unwanted
keys, but could include denial of service, cross-site scripting, elevation of privilege, and in extreme
cases, remote code execution. `JSON5.parse` should restrict parsing of `__proto__` keys when parsing JSON
strings to objects. As a point of reference, the `JSON.parse` method included in JavaScript ignores
`__proto__` keys. Simply changing `JSON5.parse` to `JSON.parse` in the examples above mitigates this
vulnerability. This vulnerability is patched in json5 versions 1.0.2, 2.2.2, and later. (CVE-2022-46175)
Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
script_set_attribute(attribute:"see_also", value:"https://jira.atlassian.com/browse/CONFSERVER-101487");
script_set_attribute(attribute:"solution", value:
"Upgrade to Atlassian Confluence version 8.5.17, 9.2.1, 9.4.0, 9.5.1, 10.0.2, 10.1.0 or later.");
script_set_attribute(attribute:"agent", value:"all");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2022-46175");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2022/12/24");
script_set_attribute(attribute:"patch_publication_date", value:"2025/11/14");
script_set_attribute(attribute:"plugin_publication_date", value:"2026/01/06");
script_set_attribute(attribute:"plugin_type", value:"combined");
script_set_attribute(attribute:"cpe", value:"cpe:/a:atlassian:confluence");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_set_attribute(attribute:"stig_severity", value:"I");
script_set_attribute(attribute:"enable_cgi_scanning", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CGI abuses : XSS");
script_copyright(english:"This script is Copyright (C) 2026 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("confluence_detect.nasl", "confluence_nix_installed.nbin", "confluence_win_installed.nbin");
script_require_keys("installed_sw/Atlassian Confluence");
exit(0);
}
include('vcf.inc');
var app_info = vcf::combined_get_app_info(app:'Atlassian Confluence');
var constraints = [
{ 'min_version' : '7.19.0','max_version' : '7.19.9999','fixed_version' : '8.5.17' },
{ 'min_version' : '8.5.0','fixed_version' : '8.5.17' },
{ 'min_version' : '8.6.0','max_version' : '8.6.9999', 'fixed_version' : '9.2.1' },
{ 'min_version' : '8.7.1','max_version' : '8.8.9999', 'fixed_version' : '9.2.1' },
{ 'min_version' : '9.0.1','fixed_version' : '9.2.1' },
{ 'min_version' : '9.3.1', 'fixed_version' : '9.4.0' },
{ 'min_version' : '9.5.0', 'fixed_version' : '9.5.1' },
{ 'min_version' : '10.0.0', 'fixed_version' : '10.0.2' }
];
vcf::check_version_and_report(
app_info:app_info,
constraints:constraints,
severity:SECURITY_HOLE,
flags:{'xss':TRUE}
);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation