CVE-2018-18307: Withdrawn Advisory Cross-Site Scripting Vulnerability
MODERATECVE-2018-18307 is a MODERATE (CVSS 5.9) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Withdrawn Advisory libraries in the RubyGems ecosystem. The issue involves alchemycms is vulnerable to stored xss via the /admin/pictures image field. Remediation is available in the latest vendor maintenance releases.
CVE-2018-18307 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L).
How to Fix CVE-2018-18307
To remediate this vulnerability, upgrade all affected Withdrawn Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade alchemy_cms to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for alchemy_cms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-18307, inspect your project dependencies for Withdrawn Advisory:
inspect dependencies for alchemy_cms
Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Withdrawn Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-18307 Affected Withdrawn Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
alchemy_cms
|
RubyGems |
4.1.0
All 1 versions
4.1.0
|
None specified
|
References
Frequently Asked Questions
What is CVE-2018-18307?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2018-18307?
Is alchemy_cms affected?
What is the CVSS score of CVE-2018-18307?
What CWE is associated with CVE-2018-18307?
How can I check RubyGems dependencies for CVE-2018-18307?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7mj4-2984-955f",
"modified" : "2025-08-29T20:34:47Z",
"published" : "2022-05-14T01:57:26Z",
"withdrawn" : "2025-08-29T20:34:47Z",
"aliases" : [ "CVE-2018-18307" ],
"summary" : "Withdrawn Advisory: AlchemyCMS is vulnerable to stored XSS via the /admin/pictures image field",
"details" : "## Withdrawn Advisory\n\nThis advisory has been withdrawn because it does not describe a vulnerability. The maintainer states the following:\n\n> The researcher used an authorized cookie to perform the request to a password-protected route. Without that session cookie, the request would have been rejected as unauthorized.\n\n## Original Description\n\nA Stored XSS vulnerability has been discovered in version 4.1.0 of AlchemyCMS via the /admin/pictures image field.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "alchemy_cms"
},
"versions" : [ "4.1.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-18307"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/AlchemyCMS/alchemy_cms"
}, {
"type" : "WEB",
"url" : "https://github.com/AlchemyCMS/alchemy_cms/blob/4.1-stable/app/controllers/alchemy/admin/base_controller.rb#L15"
}, {
"type" : "WEB",
"url" : "https://github.com/AlchemyCMS/alchemy_cms/blob/4.1-stable/app/controllers/alchemy/admin/pictures_controller.rb#L5"
}, {
"type" : "WEB",
"url" : "https://github.com/AlchemyCMS/alchemy_cms/blob/4.1-stable/app/controllers/alchemy/admin/resources_controller.rb#L21"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/alchemy_cms/CVE-2018-18307.yml"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/45601"
}, {
"type" : "WEB",
"url" : "http://packetstormsecurity.com/files/149787/Alchemy-CMS-4.1-Stable-Cross-Site-Scripting.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-01T20:57:57Z",
"nvd_published_at" : "2018-10-16T22:29:00Z"
}
}