Skip to content

cwe

MITRE Common Weakness Enumeration (CWE) LinkML Schema.

Self-contained schema covering the full MITRE CWE XSD: weakness entries, categories, views, external references, and NVD weakness observations (CWE-ID, CWE Name, Source).

URI: https://w3id.org/lmodel/cwe

Name: cwe

Classes

Class Description
AlternateTerm Another name by which this weakness may be known (AlternateTermsType/Alternat...
ApplicablePlatforms Languages, operating systems, architectures, and technologies where a weaknes...
ArchitecturePlatform A processor architecture or class applicable to a weakness (Architecture elem...
Audience A target stakeholder group for a CWE view or category (AudienceType/Stakehold...
CatalogMember A Has_Member or Member_Of entry specifying a CWE ID and the View ID in which ...
Category A collection of weaknesses grouped by a shared characteristic (CategoryType i...
CommonConsequence Individual consequence associated with a weakness (CommonConsequencesType/Con...
ContentHistory Tracks the original author and subsequent modifications (ContentHistoryType i...
Contribution A contribution record documenting donated content or feedback (ContentHistory...
CWEReference Link from a CWE entry to an ExternalReference in the catalog (ReferencesType/...
DemonstrativeExample A code example illustrating how a weakness may appear (DemonstrativeExamplesT...
DetectionMethod A method that may be employed to detect a weakness, with effectiveness (Detec...
ExampleCode A structured code snippet within a demonstrative example (StructuredCodeType ...
ExternalReference Pointer to external reading material shared across CWE entries (ExternalRefer...
LanguagePlatform A programming language or language class applicable to a weakness with associ...
MappingNotes Guidance for when and whether to map an issue to a CWE entry (MappingNotesTyp...
MappingSuggestion A suggested alternative CWE entry for mapping purposes (SuggestionsType/Sugge...
ModeOfIntroduction Information about how and when a weakness may be introduced (ModesOfIntroduct...
Modification A modification record documenting a change to a CWE entry (ContentHistoryType...
Note Additional commentary about a CWE entry (NotesType/Note in XSD)
NVDWeaknessObservation Weakness observation from an NVD vulnerability detail page
ObservedExample A reference to a real-world instance of a weakness, typically a CVE (Observed...
OSPlatform An operating system or OS class applicable to a weakness (Operating_System el...
PotentialMitigation A potential mitigation for a weakness (PotentialMitigationsType/Mitigation in...
PreviousEntryName A previous name used for a CWE entry before a substantive rename (ContentHist...
RelatedWeakness Typed directional relationship from one CWE entry to another (RelatedWeakness...
Relationship Container for category membership relationships (RelationshipsType in XSD)
Submission Initial submission record for a CWE entry (ContentHistoryType/Submission in X...
TaxonomyMapping A mapping from a CWE entry to an equivalent entry in an external taxonomy (Ta...
TechnologyPlatform A technology or technology class applicable to a weakness (Technology element...
View A perspective from which to look at weaknesses in the catalog (ViewType in XS...
Weakness Canonical CWE weakness record (WeaknessType in XSD)
WeaknessCatalog Top-level container for a CWE catalog snapshot (Weakness_Catalog in XSD)
WeaknessOrdinality Potential ordering relationship with other weaknesses (WeaknessOrdinalitiesTy...

Slots

Slot Description
abstraction CWE abstraction tier (e
affected_resources System resources that can be affected by exploiting this weakness
alternate_terms Other names by which this weakness is known
applicable_platforms Languages, OS, architectures, and technologies where this weakness can appear
architectures Processor architectures applicable to this weakness
audience Target stakeholder groups for this view or category
authors Authors of the referenced material
background_details Background information relevant but not describing the weakness itself
body_texts Interleaved body text paragraphs for a demonstrative example
categories CWE categories grouping weaknesses by a common characteristic
chain_id ID of a named chain for CanFollow/CanPrecede relationships
class_ Class or category of a platform (narrowed per class via slot_usage)
comment Explanatory comment (e
comments Further clarification for the mapping notes reader
common_consequences Individual consequences associated with this weakness
consequence_id Unique identifier for a common consequence (e
content Textual content of a note
content_history Tracks the original author and subsequent modifications
contribution_comment Comment related to the contribution
contribution_date Date of the contribution
contribution_name Name of the contributor
contribution_organization Organization of the contributor
contribution_release_date Release date of the CWE version containing the contribution
contribution_version CWE version in which the contribution first appeared
contributions Contribution records for this entry
cpe_id CPE identifier for a platform
cwe_id Numeric CWE ID (foreign key in relationships and members)
date Date associated with a catalog snapshot or a name-change event
demonstrative_example_id Unique identifier for a demonstrative example (e
demonstrative_examples Code examples illustrating how this weakness may appear
description Narrative description of the entity
detection_method_id Unique identifier for a detection method entry (e
detection_methods Methods that may be employed to detect this weakness
diagram Optional diagram filename or reference associated with the entry
edition Edition of the material being referenced
effectiveness Effectiveness level (range narrowed to DetectionEffectiveness or MitigationEf...
effectiveness_notes Strengths and shortcomings of this detection or mitigation
entry_id ID of the entry in the external taxonomy
entry_name Name of the entry in the external taxonomy
example_codes Structured code snippets within a demonstrative example
exploitation_factors Conditions that could increase the likelihood of exploit
extended_description Extended description providing additional details beyond the core concept
external_reference_id Identifier of the ExternalReference being linked to (e
external_references External references shared across CWE entries in this catalog
filter XSL query identifying members of an implicit slice view
functional_areas Functional areas in which this weakness is most likely to occur
has_member CWE entries that belong to this category or view
id Unique numeric identifier for the CWE entry, category, or view
impacts Technical impacts that arise if the weakness is exploited
intro_text Context and setting for the demonstrative example
language Programming language for a code example or platform context
languages Programming languages applicable to this weakness
likelihood Likelihood of this specific consequence
likelihood_of_exploit Qualitative likelihood that the weakness can be exploited
link URL providing more information about the observed example
mapping_fit How close the CWE entry is to the mapped taxonomy entry
mapping_notes Guidance for when and whether to map an issue to this entry
member_of Views or categories that this entry belongs to
members Member entries for a CWE view
method Detection method (range narrowed per class via slot_usage)
mitigation_id Unique identifier for a potential mitigation (e
modes_of_introduction Information about how and when this weakness may be introduced
modification_comment Comment describing what was changed
modification_date Date on which the modification was made
modification_importance Importance level of this modification
modification_name Name of the person who made the modification
modification_organization Organization of the modifier
modification_release_date Release date of the CWE version containing the modification
modification_version CWE version in which the modification first appeared
modifications Ordered list of modifications made to this entry
name Short human-readable name or title for this entity
nature Nature or kind qualifier for this entity (narrowed per class via slot_usage)
note Additional contextual note
notes Additional comments about this entry
objective Perspective from which a view has been constructed
observation_id Identifier for an NVD weakness observation row
observations Weakness observations from NVD vulnerability detail pages
observed_examples Real-world instances of this weakness
observed_in_cve CVE identifier where this weakness observation appears
operating_systems Operating systems applicable to this weakness
ordinal Set to "Primary" for the primary ChildOf relationship in the given view
ordinality Ordinality level (Primary, Resultant, or Indirect)
phase Lifecycle phase for introduction or mitigation
phases Lifecycle phases during which a mitigation may be applied
potential_mitigations Potential mitigations associated with this weakness
prevalence Regularity with which a weakness applies to this platform
previous_entry_names Previous names used for this entry before a substantive rename
publication Name of the magazine or journal
publication_day Day of publication in ---DD format
publication_month Month of publication in --MM format
publication_year Year of publication in YYYY format
publisher Publisher of the referenced material
rationale Context for the mapping usage designation
reasons Vocabulary summary of the mapping usage recommendation
reference Identifier for a real-world example (e
reference_id Globally unique identifier for an external reference (e
references Links to external references defined in the catalog
related_attack_patterns CAPEC identifiers of attack patterns associated with this weakness
related_weaknesses Typed relationships to other CWE entries
relationships Membership relationships for a CWE category
reported_by Source label for the weakness row (e
scopes Security properties violated by this consequence
section Section title or page number specific to this use of the reference
source Source or origin of the data
status Lifecycle status of the CWE entry, category, or view
strategy General protection strategy to which a mitigation contributes
structure Structural nature of the weakness (Simple, Chain, or Composite)
submission Initial submission information for this entry
submission_comment Optional comment related to the submission
submission_date Date on which this entry was submitted
submission_name Name of the person who submitted this entry
submission_organization Organization of the submitter
submission_release_date Release date of the CWE version that added this entry
submission_version CWE version in which this entry was first added
suggestions Suggested alternative CWE entries for mapping
summary Key points that define a category
tags Free-form tags for grouping and downstream filtering
taxonomy_mappings Mappings to equivalent entries in external taxonomies
taxonomy_name Name of the external taxonomy to which the mapping is made
technologies Technologies applicable to this weakness
term An alternate term by which this weakness may be known
title Descriptive title for a reference or catalog element
title_text Optional title for a demonstrative example
type Type discriminator (narrowed per class via slot_usage)
url URL pointing to the reference resource
url_date Date when the URL was last validated to exist
usage Whether this CWE entry is supported for mapping
version Version string of the catalog, entry, or submission
view_id View ID within which a relationship or membership is relevant
views CWE views providing different perspectives on the catalog
weakness Referenced CWE entry for this observation
weakness_ordinalities Potential ordering relationships of this weakness with others
weaknesses Canonical CWE weakness entries in this catalog snapshot

Enumerations

Enumeration Description
AffectedResource System resource that can be affected by exploiting a weakness (ResourceEnumer...
ArchitectureClass Class of processor architecture (ArchitectureClassEnumeration in XSD)
ArchitectureName Processor architecture (ArchitectureNameEnumeration in XSD)
CodeNature Nature of a code snippet in a demonstrative example (StructuredCodeNatureEnum...
ContentImportance Importance level of a content modification (ImportanceEnumeration in XSD)
ContributionType Whether a contribution was donated content or general feedback
CWEViewType Type of CWE view (ViewTypeEnumeration in XSD)
DetectionEffectiveness Effectiveness of a detection method (DetectionEffectivenessEnumeration in XSD...
DetectionMethodType Method that may be employed to detect a weakness (DetectionMethodEnumeration ...
FunctionalArea Functional area where a weakness is most likely to occur (FunctionalAreaEnume...
LanguageClass Class of programming language (LanguageClassEnumeration in XSD)
LifecyclePhase Phase in the product lifecycle where a weakness may be introduced or a mitiga...
LikelihoodLevel Likelihood of exploitation or occurrence (LikelihoodEnumeration in XSD)
MappingReason Reason why a CWE entry should not be used for mapping (ReasonEnumeration in X...
MappingUsage Whether a CWE entry should be used for mapping (UsageEnumeration in XSD)
MitigationEffectiveness Effectiveness of a potential mitigation (EffectivenessEnumeration in XSD)
MitigationStrategy General strategy for protecting a system (MitigationStrategyEnumeration in XS...
NoteType Type of note on a CWE entry (NoteTypeEnumeration in XSD)
OperatingSystemClass Class of operating system (OperatingSystemClassEnumeration in XSD)
OperatingSystemName Operating system (OperatingSystemNameEnumeration in XSD)
OrdinalQualifier Marks a related-weakness relationship as the primary one for a given <Nature,...
PlatformPrevalence Regularity with which a weakness applies to a given platform (PrevalenceEnume...
ProgrammingLanguage Source code language or data format (LanguageNameEnumeration in XSD)
SecurityScope Security property area that can be violated by exploiting a weakness (ScopeEn...
StakeholderType Type of stakeholder in the CWE community (StakeholderEnumeration in XSD)
TaxonomyMappingFit Closeness of a mapping to an external taxonomy (TaxonomyMappingFitEnumeration...
TaxonomyName Known taxonomy that can be mapped to CWE (TaxonomyNameEnumeration in XSD)
TechnicalImpact Technical impact of successfully exploiting a weakness (TechnicalImpactEnumer...
TechnologyClass Class of technology (TechnologyClassEnumeration in XSD)
TechnologyName Specific technology applicable to a weakness (TechnologyNameEnumeration in XS...
WeaknessAbstraction CWE abstraction layer (AbstractionEnumeration in XSD)
WeaknessOrdinalityLevel Potential ordering relationship of a weakness relative to others (OrdinalityE...
WeaknessRelationNature Nature of a directional relationship between two CWE entries (RelatedNatureEn...
WeaknessSource Source attribution for weakness data in NVD/CVE contexts
WeaknessStatus Lifecycle status of a CWE entry, category, or view (StatusEnumeration in XSD)
WeaknessStructure Structural nature of a weakness (StructureEnumeration in XSD)

Types

Type Description
Boolean A binary (true or false) value
Curie a compact URI
CveId A CVE identifier assigned by a CVE Numbering Authority (CNA)
Date a date (year, month and day) in an idealized calendar
DateOrDatetime Either a date or a datetime
Datetime The combination of a date and time
Decimal A real number with arbitrary precision that conforms to the xsd:decimal speci...
Double A real number that conforms to the xsd:double specification
Float A real number that conforms to the xsd:float specification
Integer An integer
Jsonpath A string encoding a JSON Path
Jsonpointer A string encoding a JSON Pointer
Ncname Prefix part of CURIE
Nodeidentifier A URI, CURIE or BNODE that represents a node in a model
Objectidentifier A URI or CURIE that represents an object in the model
Sparqlpath A string encoding a SPARQL Property Path
String A character string
Time A time object represents a (local) time of day, independent of any particular...
Uri a complete URI
Uriorcurie a URI or a CURIE

Subsets

Subset Description
CweDictionary Canonical MITRE CWE dictionary records
NvdWeaknessObservation Weakness rows observed in NVD vulnerability detail pages