system: You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog is comprehensive for this dataset -- the answer is a (possibly small) subset of it.

OUTPUT FORMAT: Respond with a comma-separated list of CWE IDs in the form `CWE-N`, sorted in ascending numeric order, wrapped in a single \boxed{...}. Examples: `\boxed{CWE-79}` for one, `\boxed{CWE-22,CWE-79,CWE-327}` for three. Output the boxed answer ONLY -- no explanation, no other text.

user: ```python

# 2020.06.30
# https://stackoverflow.com/questions/62632892/extracting-table-data-from-wikipedia-api/

import urllib3
import requests
from bs4 import BeautifulSoup
import json

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

url = 'https://en.wikipedia.org/wiki/Rahul_Gandhi'
#url = 'https://en.wikipedia.org/wiki/Sonia_Gandhi'

session = requests.Session()

html = session.get(url, verify=False).content

soup = BeautifulSoup(html, 'lxml')

table = soup.find('table', {'class': 'infobox vcard'})

# --- 

content = {}
header1 = None
header2 = None
current = content

for row in table.find_all('tr'):
    
    children = list(row.children)
    
    # replace '<br>' with '\n'
    for item in children:
        for br in item.find_all('br'):
            br.replace_with('\n' + br.text)

    # headers/subheaders (sections/subsections)
    if len(children) == 1:

        #html = str(children[0]).strip()
        
        # skip empty rows
        inner_html = children[0].decode_contents().strip()
        if not inner_html:
            continue
        #print(inner_html)
        
        text = children[0].get_text().strip() # don't `get_text(strip=True)` to keep `\n`

        # clean text - replace non-breaking space         
        text = text.replace('\u00a0', ' ')
        #print(item.name, '|', text)

        images = [{
                    'src': x.get('src'),
                    'width': x.get('width', ''),
                    'height': x.get('height', ''),
                    'alt': x.get('alt'),
                  } for x in children[0].find_all('img')]

        links  = [{
                    'text': x.text,
                    'href': x.get('href', ''),
                    'title': x.get('title', ''),
                  } for x in children[0].find_all('a')]
        
        # create headers / section
        if children[0].name == 'th':
            header1 = text
            
            section = {
                'type': 'header',
                #'html': html,
                'key' : text,
                'text': text,   # text in header
                'links': links, # links in header
                'images': images,
                'items': {},    # items in section
            }
            
            content[header1] = section  # add section to content
            current = section['items']  # keep access to add items later

        # create subheaders / subsection
        if children[0].name == 'td':
            header2 = text

            section = {
                'type': 'header',
                #'html': html,
                'key' : text,
                'text': text,   # text in subheader
                'links': links, # links in subheader
                'images': images,
                'items': {},    # items in subsection
            }
            
            content[header1]['items'][header2] = section  # add section to content
            current = section['items']  # keep access to add items later
            
    # items in sections/sections
    if len(children) == 2:
        #html   = str(children[1])

        # skip empty rows
        #inner_html = children[0].decode_contents().strip()
        #if not inner_html:
        #    continue
        #print(inner_html)
        
        key    = children[0].get_text().strip()
        text   = children[1].get_text().strip()
        
        links  = [{
                    'text': x.text,
                    'href': x.get('href', ''),
                    'title': x.get('title', ''),
                  } for x in children[1].find_all('a')]
        
        images = [{
                    'src': x.get('src'),
                    'width': x.get('width', ''),
                    'height': x.get('height', ''),
                    'alt': x.get('alt'),
                  } for x in children[1].find_all('img')]

        # clean text - replace non-breaking space 
        text = text.replace('\u00a0', ' ')

        current[key] = {
            'type': 'item',
            #'html': html,
            'key': key,
            'text': text,
            'links': links,
            'images': images,
            'items': {}
        }

        #print(content[key])

#first_key = list(content.keys())[0]
#print(first_key)
#print(json.dumps(content[first_key], indent=2))

print(json.dumps(content, indent=2))



```

Candidate CWE catalog (every CWE that appears anywhere in this dataset):
  - CWE-20: Improper Input Validation
  - CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  - CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  - CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  - CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  - CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  - CWE-94: Improper Control of Generation of Code ('Code Injection')
  - CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  - CWE-116: Improper Encoding or Escaping of Output
  - CWE-117: Improper Output Neutralization for Logs
  - CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  - CWE-209: Generation of Error Message Containing Sensitive Information
  - CWE-215: Insertion of Sensitive Information Into Debugging Code
  - CWE-295: Improper Certificate Validation
  - CWE-312: Cleartext Storage of Sensitive Information
  - CWE-326: Inadequate Encryption Strength
  - CWE-327: Use of a Broken or Risky Cryptographic Algorithm
  - CWE-377: Insecure Temporary File
  - CWE-502: Deserialization of Untrusted Data
  - CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
  - CWE-611: Improper Restriction of XML External Entity Reference
  - CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
  - CWE-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection')
  - CWE-730: OWASP Top Ten 2004 Category A9 - Denial of Service
  - CWE-732: Incorrect Permission Assignment for Critical Resource
  - CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
  - CWE-918: Server-Side Request Forgery (SSRF)
  - CWE-943: Improper Neutralization of Special Elements in Data Query Logic
  - CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag
  - CWE-1333: Inefficient Regular Expression Complexity

List every distinct CWE from the catalog above that is actually present in this code.
Answer: CWE-295